add toggle mode to scripts for movement, rotation, and attack keys. mode is toggled by backspace