07-01-2013, 03:12 AM
Is there a way to determine how long a keyboard key (or keyboard sequence such as shift-alt-p) has been pressed? I would like to kick off a function based on how long the key (or key sequence) is pressed. For example, I could detect morse code with a particular key (short press = dot, long press=dash).