let players walk if their position changes and not if they hold specific keys

Why {x=0, y=0, z=0} as fallback? I would suggest changing that to the current pos of the player.