How to change animation on touch?

I want to change animation when touch (+1 to index of animation when touch once)
But when I touch ArrLeft/ArrRight, the animation always jump to the smallest/largest index of animation
Is there any condition like ‘touch released’?

Here is mine

You could use a timer…