The key code associated with the key in this key pressed or key released event. For key typed events, code is always KeyCode.UNDEFINED.
code
KeyCode.UNDEFINED
Returns: The key code associated with the key in this event, KeyCode.UNDEFINED for key typed event
Diagram: InputEvent