This is a wrong use of
_input is called once for any kind of event happening (mouse moved, key pressed, key released, joystick moved, MIDI key pressed...).
Input.is_key_pressed(KEY_LEFT) checks if the left key is currently held.
_input, the input information is given to you with the
event argument (which you were warned to not ignore I believe, judging by
However, turns out
_input might allow you to do what you want, if you check
event in this way:
func _input(event: InputEvent) -> void:
if event is InputEventKey and event.pressed and not event.is_echo():
# A key just got pressed (will be called just once)