Add the appropriate keyboard event listeners.
This method is called automatically when the keyboard is created.
Check whether a given key is down.
let keys = new Keyboard();
keyboard.isDown("enter");
// or
keyboard.isDown(Keyboard.KEY_ENTER);
The key code or name of a key
Remove the event listeners for the keyboard. This can be used to stop the keyboard processing events.
Generated using TypeDoc
A class that listens for keyboard events and tracks the current state of pressed keys.