Let program give feedback when an unknown key is pressed

The program did not show me if a sent key was valid or not; it just quietly returned. Thanks to the display of incorrect input, I immediately found an error in my bash scripts.