So, the walking frame resets whenever the left or right key is pressed.