Deselecting rows in table using jquery
<p>In <a href="http://jsfiddle.net/hKZqS/51/" rel="nofollow">this code</a>, if I press shift+down key it selects multiple rows and if I press the up key, it is deselecting. But if I press shift+uparrow only deselection should happen.</p>

<p>Normally using the up and down keys, I can navigate up and down.</p>

<p>eg:If table has 10 rows and using shift+downarrow, I select 3 rows, and after this I press the down arrow to row 6. From this I should be able to select rows again with deselection the previous selected rows.</p>

<p>In my code you can see </p>

<pre><code>if(code == 13) { //Enter keycode
    alert(did);
    if(did != undefined){
        window.open('keyboard.php?q=' + did);
    }
}
</code></pre>

<p>Here, if I press the enter key, it should take me to another page but for some reason I am getting an undefined error.  What am I doing wrong?</p>
