Implementing friction to the box's movement

The box now stops automatically when keys are up