Player keeps moving, even after key is released. please help.

Exactly what Tekrel says above. But also:

  • Always use FixedUpdate() when dealing with physics, otherwise you will get inconsistent results

  • Don’t use Input.GetKeyDown() or Input.GetKeyUp(). Just use Input.GetKey() and either set the velocity to zero or nonzero based on what you get back from Input.GetKey()

  • Always use code tags when posting code to this forum.

How to use code tags: Using code tags properly