Stop animation from looping in the animation window

Hello everyone, I have a problem that I can’t seem to solve.

I’ve cloned an animation so I could edit it, but now the character does the animation and goes back to the start of the animation. It loops only once. It goes from “Idle” press button attack, it goes back to the beginning position and then walks back.

→ It is supposed to stop the attack animation and go to walk back.

How do I fix this?

Please help