don't activate animation when animation is playing

Hi! I have animation blueprint, its activated by pressing key and inverse animation by pressing another key. But I have a problem, keys are active when animation is playing(( How i can do them not active when anim is playing?

Get yourself familar with Anim Notifies. Set/unset a Boolean Variable and use this to determine whether the animation can be played.
There’s also the possibility to use Anim Montages because you can poll whether an Anim Montage is already playing.