event
onKeyDown (client-side)
Available since version: 0.3.0
This event can be canceled
This event is triggered when user presses any button on their keyboard, mouse, or joystick.
Parameters
int key
int
key: pressed key by user. See Key constants, Mouse constants for more details.