HELP: Changing the Walk/Jog/Run Speed

Hey there, so I’m pretty new to UE and I’m working with UE 5.7 like since 1 or 2 months now ‘cause I had a game idea and wanted to create it.

Now to my question → So I already viewed a tutorial how to change the walking speed with velocity. Now I have the problem that my walking Speed is at 200 , my jog speed is at 400 and my run speed is at 600. Now I want this:

→ First of all I want to have it, that you can either hold the “Left Shift key” or press and toggle it to change from walking to running. And I want the same with the jogging but with an other key like “Left CTRL”. How to change it that it toggles I found out but when I toggle to Jog at 400 walk speed and then I press the “Left Shift” key to run and then release it, my character is again in the walking speed at 200 and not in the jogging speed at 400 but I want to have it to remember what it’s last walking speed was. So when I’m jogging and then running or sprinting and then stop I want to have him go back into the jogging speed if it wasn’t untoggled from the player.

This is how it looks like for now. I’d appreciate any tips and tricks to learn more about the UE and it’s functions. I started to work with it without any experience in programing at all. (Sorry for my bad english)

(post deleted by author)

Try this: