fixed crash when unknown key is pressed/released