Represents a keyboard device. It emits an event when a key is pressed or released.
Creates a new Keyboard instance. Adds event listeners for keyup and keydown events.
Readonly
onAnyButtonPress is an event that is triggered when any device button is pressed. Add observers and emit the event.
Event triggered when a key is pressed.
Event triggered when a key is released.
Represents a keyboard device. It emits an event when a key is pressed or released.