BP- Play imported animation on key press

Hi, inside a sidescroller sample, i import a character with animation, now i would play this animation on key press.
So i try to do like this
The animation play when i press G, but if i keep pressed not continue to play, how can i do?

Thank you for any advise.

Hello Berets,

First of all this is the wrong way.

You should us “Animation Blueprint” for such events.[Here][2] you can see how you create it.

200221-capture.jpg

Yes, but the character that i want to anim is not the sidescrollercharacter is another one

Okay them you should try first one.