KeyboardDevice provides an interface for subscribing to keyboard events and running callbacks when those events happen.
Reset the keyboard (e.g., between levels)
Set a handler to respond to keydown event(s)
The key (or keys) to listen for
The code to run
Set a handler to respond to keyup event(s)
KeyboardDevice provides an interface for subscribing to keyboard events and running callbacks when those events happen.