fix crash on pressing the wrong key
fix crash on pressing the wrong key

bedna-KU/icewm,jinn-alt/icewm,jinn-alt/icewm,bedna-KU/icewm,dicej/icewm,dicej/icewm,dicej/icewm,jinn-alt/icewm,bedna-KU/icewm,dicej/icewm