Keyboard.addKeyDownListener() method
Add key down event listener.
Signature:
addKeyDownListener(reaction: Reaction, name?: ListenerName): void;
Parameters
Parameter | Description |
---|
reaction | The callback when key is down. The callback will receive the key. |
name | ? - the name of listener |
Returns:
void