apply_central_force makes me move faster when using both imputs

Godot Version

` func _process(delta: float) → void:

var input  := Vector3.ZERO 
input.x = Input.get_axis("move_left", "move_right")
input.z = Input.get_axis("move_forward", "move_back")
apply_central_force($twistpivot.basis * input * speed * delta * haste_value)	  `

Question

Hi, I was testing with movement when I realized that I was going faster when I pressed W + A, or W + D, and so on. I was wondering if there was a way I cpuld detect that two imputs where being used so I could half the "speed" variable

Pressing W+A (look at applied_cforce for linear_velocity)
imagen_2025-07-09_195117449

Pressing W
imagen_2025-07-09_195203538

(Ignore the axis, I was rotating to make the screenshots)

Use Input.get_vector instead of setting both axis individually. This returns a vector with a length of 1.0

var input: Vector2 = Input.get_vector("move_left", "move_right", "move_forward", "move_back")

var force: Vector3 = Vector3(input.x, 0, input.y) * speed * haste_value
apply_central_force($twistpivot.basis * force * delta)

It gives me this error: Invalid operands ‘Basis’ and ‘Vector2’ in operator ‘*’.

Ok, I rerun the code and now it works perfectly. Thanks!