I have this code
I use jkey to simplify the usage on detecting which key is pressed.
Question
What i want is when any other except up arrow key is pressed set the value of count to -1 and if up arrow key is pressed do it just like in the code.
Is there a way out by using the jKey plugin ?
if not then how do i do it with normal jquery
This obviously doesn’t get you exactly where you want to go but it should get you started.
HTML
JS