I forgot to mention that i've this problem only on Linux (Windows version works fine).
But it's strange: if i compile with allegro, it works fine, but if i compile with SDL, the crash occurs. Maybe a problem of key handling from SDL? <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? -->