[back to index]
True if the key has been pressed this frame.
True if this key is currently 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, 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 string with the name of the given key. For example, Key.SEMICOLON returns ;, Key.SPACE returns Space, Key.PAGEDOWN returns Page Down.