How can i detect double press key ?

Dec 2, 2011 at 5:26 PM
Edited Dec 2, 2011 at 5:26 PM

How can i detect double press key and set the interval between pressing? For example double press Q, interval is 0.1 second, when it will take longer is counted as 2 key consecutive.

Thanx for the answer !