Effectively if you hold a key down, you're telling the computer to keep inputting.

If you want the user to be able to hold the key down... when is the trigger for the "cough"; when the key is pressed or when the user eventually lifts their finger off the key?