Javascript: addEventListener with onkeydown doesn't seem to work
<p>If you replace "onkeydown" with "click", it reacts, at least.</p>

<pre><code>&lt;input id="yourinput" type="text" /&gt;

&lt;script type="text/javascript"&gt;
document.getElementById("yourinput").addEventListener("onkeydown", keyDownTextField, false);

function keyDownTextField() {
alert("functional");    
if(keycode==13) {
        alert("You hit the enter key.");
    }
    else{
        alert("Oh no you didn't.");
    }
}
&lt;/script&gt;
</code></pre>
