Added a bit of logic to make sure you are moving in order to shift. If you're not then it does nothing and ends the command.