jQuery - keydown / keypress /keyup ENTERKEY detection?
<p>Trying to get jQuery to detect enter input, but space and other keys are detected, enter isn't detected.  What's wrong below: </p>

<pre><code>$("#entersomething").keyup(function(e) {
    alert("up");
    var code = (e.keyCode ? e.keyCode : e.which);
    if (code==13) {
        e.preventDefault();
    }

    if (code == 32 || code == 13 || code == 188 || code == 186) {
        $("#displaysomething").html($(this).val());
});

&lt;input id="entersomething" /&gt;
&lt;div id="displaysomething"&amp;gt;&amp;lt;/div&amp;gt;
</code></pre>

<p><a href="http://jsfiddle.net/zeRrv/">http://jsfiddle.net/zeRrv/</a></p>
