isKeyJustPressed

abstract fun isKeyJustPressed(key: Key): Boolean

Determines if the key is was just pressed within the past frame.

Return

true if the Key was just pressed; false otherwise.