Returns true if the Key was pressed down within the duration value given, based on the current game clock time. Or false if it either isn't down, or was pressed down longer ago than the given duration.
true
duration
false
The Key object to test.
Optional
The duration, in ms, within which the key must have been pressed down. Default 50.
Returns
trueif the Key was pressed down within thedurationvalue given, based on the current game clock time. Orfalseif it either isn't down, or was pressed down longer ago than the given duration.