Creates a new KeyboardHandler
Clears the active context for the keyboard handler.
Returns if a key is currently held down.
KeyCode | number - The keyCode to check
Sets the active context of the keyboard handler.
KeyboardContext - The context to use
Returns a promise that will resolve the next time a given keyCode is pressed down. If no keyCode is given, it will return the next keyCode pressed.
Returns a promise that will resolve the next time a given keyCode is released. If no keyCode is given, it will return the next keyCode released.
The keyCode to listen to. If not provided, will monitor for any keycode.
Generated using TypeDoc
Represents a global keyboard. Will likely only create one per app.
You can bind/switch KeyboardContexts to the Keyboard handler to change input 'modes'.