onKeyPressed

fun onKeyPressed(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (<Error class: unknown class>, <Error class: unknown class>, <Error class: unknown class>) -> Boolean): <Error class: unknown class>(source)

Emitted whenever a key is pressed.

Parameters

connectFlags

a combination of ConnectFlags

handler

the Callback to connect. Params: keyval the pressed key.; keycode the raw code of the pressed key.; state the bitmask, representing the state of modifier keys and pointer buttons.. Returns true if the key press was handled, false otherwise.