isHeld

abstract fun isHeld(key: KeyCode): Boolean

Returns whether a given key is being held or not at the time of the call.

Parameters

key

the queried key