Keyboard features

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
Test if any key is pressed

Any key released
Test if any key is released

Key pressed (text expression)
Test if a key, retrieved from the result of the expression, is pressed

Key released (text expression)
Test if a key, retrieved from the result of the expression, was just released

Key pressed
Test if a key is pressed

Key released
Test if a key was just released

Expressions

Expression Description
LastPressedKey() Get the name of the latest key pressed on the keyboard

This page is an auto-generated reference page about the Keyboard features feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.