Disable keyboard <enter> key
<p>I just want to disable the <kbd>Enter</kbd> key on the keyboard. The following script locks the whole keyboard down for some reason except for still allowing only the <kbd>Enter</kbd> key to be used. </p>

<p>If this helps pinpoint what's missing or wrong, I'm using V.S. 2005, VB.NET 2.0, and I.E. 7.</p>

<pre><code>&lt;meta http-equiv="content-type" content="text/html; charset=windows-1252"&gt;

&lt;head&gt;
    &lt;meta http-equiv="content-type" content="text/html; charset=windows-1252"&gt;

    &lt;script language="JavaScript"&gt;
    function TriggeredKey(e)
    {
        var keycode;
        if (window.event) keycode = window.event.keyCode;
        if (window.event.keyCode = 13 ) return false;
    }
    &lt;/script&gt;
&lt;/head&gt;
&lt;body onkeydown="TriggeredKey(this)"&gt;
</code></pre>
