Switching between different sequences using buttons.

Hello everyone!

Im a newbie in ue5 and i got a problem using blueprints. I have 2 different sequences, which can be played using keyboard buttons. The problem is that i want to cycle the first sequence and play it until the button(which summons 2-nd sequence) is not pressed. if it is possible, id like the first sequence to be played from beginning to the end before the second sequence starts to play.

Will be grateful for help!!