StopKey(creature, animID, flex_delay);
creature: This is the thing whose animation is to be stopped.
animID: This is the number of the animation to be stopped.
flex_delay: The animation will be stopped when this delay expires. The delay will not work unless the animation has the 0x10 Keyframe Flag.