Skip to content

event onKey (client-side)

This event can be canceled

This event is triggered whenever the user presses any button on their keyboard.

Parameters

int key
  • int key: pressed key by user. See Key constants for more details.