Keyboard.addKeyDownListener() method

Add key down event listener.

Signature:

addKeyDownListener(reaction: Reaction, name?: ListenerName): void;

Parameters

ParameterDescription
reactionThe callback when key is down. The callback will receive the key.
name? - the name of listener

Returns:

void