[back to index]
True if the key has been pressed this frame. (Use Key.ANY to check if any key is pressed this frame.)
True if this key is currently held down. (Use Key.ANY to check if any key is held down.)
True if the key has been released this frame
If the player is holding down this key, 'force' release it. Future calls to Input.pressed() will return false until the player lifts their finger and presses it again. If you call Input.forcerelease() without any parameters or with Key.ANY, it releases all keypresses.
True once every N frames, if the key is pressed.
Tells you how many frames a key has been pressed down for.
Returns the last letter pressed.
Returns a key matching the given character. Doesn't work for every character. For example, "a" returns Key.A.
Returns a string with the name of the given key. For example, Key.SEMICOLON returns ;, Key.SPACE returns Space, Key.PAGEDOWN returns Page Down.