title: onkeypress() not working
body: <p>i am trying to catch the keypress event on the window (html page opened with an app which uses gecko engine)</p>
  
  <pre><code>function onkeypress(){
        alert("key pressed !")
  }
  </code></pre>
  
  <p>i expect this function to be called whenever any button is clicked, when the focus is on window. But the function is not been called.
   Any idea what is going wrong here?
  Thanks ...  </p>