Need Help with Button Mashing QTE

So I recently started using RPGMaker MV and am making a horror game.
What I am trying to do is make a script where a door is jammed and you need to spam space to open the door. If you fail it is gameover, but if you spam enough the door will open.

I KNOW people think these are stupid, but I don't.

What I am looking for is an rpgmaker MV
Script or picture of a script to make this possible.

Thx

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-button-mashing-qte.117466/