The best way to handle it would probably be to use a variable and decrease it by 1 for every second that passes while the player is using the Button Mash Event. Make a conditional branch so that if the variable goes below zero, it plays a fail event.