detect when a keyboard key is released

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lalel345

when I use the input maps I can call the Input method Input.is_action_just_released () but if I want to do it with the _input (event) method, how do I do this?

:bust_in_silhouette: Reply From: Gamemap

You can do it almost the same:
func _input(event):
if event.is_action_released("ACTION"):
print("Key pressed")

Here is the Godot Docs page