Fixed some input issues

fixed code so that the player goes back to idle mode when releasing
buttons.