keyboard handler

Code that determines and responds to keys or key combinations pressed by the user.