Looping animation while pressing buttons?

so I just had this idea and I want to develop it but I'm not really sure which way to go.
Basically I was thinking of a horror game where the evil girl is following you and when she touches you, a mini game starts.
She tries to kill you with her knife, so you have 15 seconds to press "A" to free yourself, if you fail she will kill you (very simplified idea).
So, the coolest part should be the "she tries to kill you", that would be an animation of her attacking you. I was thinking of play video (animation of 15 seconds), assign the press of a button to a variable, IF variable = 15 then stop video, erase event, etc
...is it a good idea? Would you have a better idea to do this?

REDACTED BY MODERATION, please read the forum rules.

Original thread: https://forums.rpgmakerweb.com/threads/looping-animation-while-pressing-buttons.164889/