How to stop animation sequence from repeating

Hello. I am experiencing difficulty achieving the result that I want.
So basically, I have a level sequence that I need to play and pause using a certain key.
For example, I am playing the animation using “R” forwards, and playing backwards using “T”

The problem comes when the animation ends. On pressing the same “R” key again it goes from the beginning.
Is there any way of avoiding this? I basically need when the animation is in the last frame, for example, not to be able to be played from the beginning and vice versa, when the animation is on the first frame, pressing backwards button to not give any result and starts from the last frame.

Here is my configuration in the level BP

Okay guys, I almost do this. But for some reason I still cannot make it for the backwards part. I made when we get to the finish animation using OnFinished function to set the play rate to 0. But for some reason that is not working for the “Play Reverse” animation.

This is my solution until now: