How to check if key isn't being pressed?

Godot 4.2.1

how to do an if statement that only runs the code when a certain key is not being pressed, in a player characterbody2d? GDscript

if not Input.is_action_pressed("desired key from inputmap"):

There is also Input.is_action_released() if you’re interested in when a key is released.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.