doesnt crash with some key presses