is_action_just_pressed Only checks if the action was pressed this frame not if it was held down. You could use is_action_pressed or a more applicable function like get_vector
get_vector translates all the inputs listed into a Vector2, left/right are negative and positive on the X axis, up/down are negative and positive on the Y axis.