I have a question regarding the onkeypress event on JavaScript.
Is it possible to detect just Cntl key or Alt Key? At the moment if both Cntl and m are pressed the onkeypress event can trigger a click. Is it possible to do just Cntl key by itself?
Looking forward to your comments
onkeypressjust catches character keys. Useonkeydownand/oronkeyupfor the other keys. See Peter-Paul Koch on key events.