Keyboard Reference
Allows your game to respond to keyboard input. Note that this does not work with on-screen keyboard on touch devices: use instead conditions related to touch when making a game for mobile/touchscreen devices. Read more explanations about it.
Conditions
Any key pressed
Check if any key is pressed
Any key released
Check if any key is released
Key pressed
Check if a key is pressed
Key released
Check if a key was just released
Expressions
Expression | Description | |
---|---|---|
LastPressedKey() |
Get the name of the latest key pressed on the keyboard |
The Keyboard extension is always installed in all GDevelop projects: there is no need to add it from the Project Manager.
This page is an auto-generated reference page about the Keyboard feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.