title: ReferenceError: event is not defined in mozila firefox
body: <p>This code is not working for me in Firefox(V21.0) but works in IE(V9,V10) and Chrome (V 27.0.1453.110 m)</p>
  <p>Method cal:</p>
  <pre><code>&lt;input type=&quot;text&quot; id=&quot;txt1&quot; class=&quot;search-bar-input&quot;
                           onkeyup=&quot;handleKeyPress('btn1');&quot;&gt;
  </code></pre>
  <p>Method definition:</p>
  <pre><code>function handleKeyPress(searchButtonId) {
     if (event.keyCode === 13) {
      alert(event.KeyCode);
      }
  }
  </code></pre>
  <p>Error Message:</p>
  <blockquote>
  <p>ReferenceError: event is not defined<br />
  if (event.keyCode === 13) {</p>
  </blockquote>
  <p>Does anyone have any idea to solve the issue?</p>