I used the general way of detecting input in godot viz.
if Input.isactionpressed("Move Right"):
transform.basis.x -= speed
etc.
My problem is, there is some delay between the time the key is pressed and the movement.
Is there any other way of input detection?