Pressing key for playing animation

Hi, I have a question. How to play animation only if player press key (F) many times and fast, but if he stop doing this animation start over again.