Keyboard Reference
Conditions to check keys pressed on a keyboard. Note that this does not work with on-screen keyboard on touch devices: use instead mouse/touch conditions when making a game for mobile/touchscreen devices or when making a new game from scratch. 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.