var ev = InputEventKey.new() ev.scancode = KEY_A InputMap.add_action("ui_a") InputMap.action_add_event("ui_a", ev)