isPressed

fun isPressed(): Boolean

Returns true on the initial key press. For continuous querying use isKeyDown.

Return

whether the key has just been pressed

Sources

Link copied to clipboard