title: Space bar keyCode(32) not working on Mozilla Firefox
body: <p>Enter <code>keyCode(13)</code> works fine on all browsers. </p>
  
  <p>Space bar <code>keyCode(32)</code> I tested on Chrome works fine but not responding on Firefox. I used the following code:</p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
      function enterPressed(evn) {
          var e_id = $('e_id').value;
          var e_fname = $('e_fname').value;
          var e_role = $('e_role').value;
  
          if (window.event &amp;&amp; window.event.keyCode == 13) {
              Monitor.Order.assign(e_id, e_fname, e_role);
          } else if (evn &amp;&amp; evn.keyCode == 13) {
              Monitor.Order.assign(e_id, e_fname, e_role);
          } else if (evn &amp;&amp; evn.keyCode == 32) {
              Monitor.Order.updateStatus('COOKED');
          }                       
      }
      document.onkeypress = enterPressed;     
  &lt;/script&gt;
  </code></pre>
  
  <p>Why is this not working in Firefox when it works in Chrome?</p>