This is something that seemed like fun to make, so I decided to do it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ How it works: It detects if the key is pressed, waits 1/10000 of a second, and then detects if the key is pressed again. It repeats that loop until the specified time is up.
All of the code by me, @Avocado623