Playing an Animation When Key is Pressed

Hello,
I am trying to make a game based around the character The Flash from DC Comics. If you dont know then the Flash has super speed. I had set up an animation blueprint where if the speed was the same as the character then the super speed animation would play but that didn’t work. Eventually I devised a system that works where if you press shift it goes to super speed and the animation plays. The only problem is how do I get it to stop playing the animation because if you release the button then the character returns to normal speed but the running animation is still playing. Please help me this is for my college work. Any help will be appreciated!

UPDATE:

Apologies folks! I had been following a tutorial and I had missed a step which is why part of my other system wasn’t working. All works fine now! Feel free to comment if you would like to see how it works!