How do i call a js function on pressing enter key
<p>I'd like to know how I can initiate a javacsript function when pressing the enter key. I'm trying to create a function called <code>handleEnter(event, fn)</code>.</p>

<p>I want to use the function on an input field eg:</p>

<pre><code>onkeypress="return handleEnter(event, update_field(this));
</code></pre>
