How to know if a certain keyframe has been reached

I’ve been experimenting alot with animations and combining them with projectiles. Problem is, the projectile is usually released first before the animation is finished. My question is, is there a way to know if a certain keyframe has been reached, and if it has then the rest of the script is activated?

There’s this but i never used it so i’m not very knowledgeable on it