fixing a bug where roodl would keep on moving to left/right even when right/left arrows were not pressed while jumping on a platform steadily