Key event not firing
<p>My Javascript: </p>

<pre><code>$("#test").keypress(function(e){
       if (document.all){ var evt = event.keyCode; }
       else if(e.which) { var evt = e.which;       }           
       else             { var evt = e.charCode;    }

       if (evt == 13){ // with any other key, the alert dos not fire
            alert(evt);
       }
       return true;
});
</code></pre>

<p><a href="http://jsfiddle.net/cDVek/6/" rel="nofollow">Jsfiddle demo</a></p>

<p>The keycode 13 <code>Enter</code> fires the alert, but any other dosent.</p>

<p>Can any one tell me why?</p>

<p>I need to verify if the 13 or 9 <code>tab</code> was fired.</p>

<p>Thanks.</p>
