Thank you. But what I confused in is how to set an InputEvent binding a key like "KEY_A" so that when I press the "A" key it can feedback the action Input.is_action_pressed("A")
.
Here is the Input singleton of the document:
var ev = InputEventAction.new()
ev.set_as_action("move_left", true)
Input.parse_input_event(ev)
Still not understand how to do it.