Gets called when a key is pressed.
CancellableEvent
cancel(): void
void
Cancels the event.
Returns
Inherited from
CancellableEvent.cancel
cancel
getKeyCode(): number
number
Gets the key code of the key that was pressed.
the key code of the key that was pressed.
isCancelled(): boolean
boolean
If the event is cancelled or not.
CancellableEvent.isCancelled
isCancelled
Last updated 3 months ago