Switching between Animation Sequences & back?

So Im trying to get an animation sequence to play then flip back to the old animation sequence using the arrow keys to move & the space key to jump or attack.

So say user is holding down movement keys, that would display the walking animation sequence, then all of a sudden in the middle of the animation, they press the space key to attack so it switches to the attack Animation Sequence.

Then 'waits until the attack animation sequence is finished', then switches back to the last animation which in this case is 'walk'

Is there an example of this in SpriteMixer?