Help on running

So I took this code from this example called simple speed power up. So I want to change this when you press shift it does the running animation and if you release shift it does the walking animation. Is there any way to do such thing to this code:


When shift is pressed switch to the running animation, and when it’s released play the normal running animation

1 Like