event onKeyInput (client-side)
Available since version: 0.3.0
Note
Certain key buttons can produce a whitespace character, here's the list of them:
KEY_ESCAPE = '\x1b'
KEY_BACK = '\b'
KEY_RETURN = '\r'
KEY_TAB = '\t'
Note
Key combinations like (CTRL+KEY) will produce a ASCII control character, See ASCII table for more details.
This event is triggered when user presses a button on their keyboard that produces character.
Parameters
int key, int character
intkey: pressed key by user. See Key constants for more details.intcharacter: typed character by user.