I have a toggle between walk and jog. If I toggle to walk then decide to sprint, after i release the sprint key it returns me to jogging. How would i return the character to the previously chosen toggle option as if i wanted to re-enable walk I’d have to press it twice.
Create a variable to store the active movement mode (Walk/Jog) or you could store the active Movement Speed. When Shift key is pressed, use this variable to hold the mode/speed of your character. When the user releases the Shift key, you can switch back to the previous movement mode/speed by looking up this variable.