How create a simple "Action Button" (not ON/OFF switch)

Hello, I want to make a simple activate button that is not an ON OFF switch. Indeed, when I apply a switch to an animation, it rewinds the animation on the second press. I would like a way to simulate a simple button so that when touched, the animation goes one way only with each press. Thank you Best regards