I'm trying to detect when a user holds down a shift key and lets go. I trapped the "onkeydown" and "onkeyup" events, but when I hold down to the SHIFT key, the up and down events trigger repetitively and won't stop. How can I write code that only detects the INITIAL key down, and FINAL key up?
In case you're confused, try holding down on a letter on your keyboard, and your computer will reptitively type that single character. The same response is happening with the SHIFT key and I want to disable to 'repetitive' event triggering.
I'm on IE6.0
Thanks for any advice.