Animation run shoot = animation running?

Hi, I would like to know how I can get my animation to fire, just like the animation.
EX: As in megaman X, X runs and in the frame he is running he can shoot without the animation restart.

for whenever the f key is held.

Events player :