How to use multiple input mappings in Input.get_action_strength("")?

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

Hi!
I want to be able to use the arrow keys (ui_up, left, right and down) and WASD to move in my game. I can’t however, have more than one mapping in this code:

input_vector.x = Input.get_action_strength(“key_d”) - Input.get_action_strength(“key_a”)
input_vector.y = Input.get_action_strength(“key_s”) - Input.get_action_strength(“key_w”)

key_d, a, s and w are custom mappings and are bound to the appropriate key.
I’m quite new so this may be super simple.
Thanks for any help in advance!