isKeyDown(k);
Check if a keyboard key is pressed, returns true
if key is down and returns false
if it's not
Arguments
k
The keyboard key to checkReturns
boolean
Whether or not the key is downkeyPressed(key);
EventCalled whenever a key is pressed.
Arguments
key
The pressed keykeyReleased(key);
EventCalled whenever a key is released.
Arguments
key
The released keykeyHeld(key);
EventCalled whenever a key is held down.
Arguments
key
The held key