Skip to content
Advertisement

Tag: input

Check if a key is down?

Is there a way to detect if a key is currently down in JavaScript? I know about the “keydown” event, but that’s not what I need. Some time AFTER the key is pressed, I want to be able to detect if it is still pressed down. P. S. The biggest issue seems to be that after some period of time

Advertisement