Fixed key pressed

Made sure the elapsed time is ignored when the key is rapidly pressed