Dynamically resizing the terminal window during play by dragging its edges was beeping (a lot if you dragged slowly). Recogize the key code sent for that instead of complaining about unrecognized input.