I am trying to get keys from users using javascript and storing it in a javascript object.
i.e when i press \'A\', 1 should be added to myJSON[65].
The following cod
Use keydown and keyup events only. They work as their name implies, keydown : a single event when a key is pressed. keyup - a single event when the key is released.