title: Pass backspace key pressed event to the applet and stop it propagation
body: <p>I have a java applet on web page that allows editing text. When user tries to modify text, pressing backspace button, browser forwards to previous page. If filter backspace pressing like</p>
  
  <pre><code>var a = function () {
          var event = window.event;
          if (event.keyCode == 8){
              alert('backspace');
              return false;
          }
  }
  document.onkeydown = a;
  </code></pre>
  
  <p>then backspace doesn't propogate to applet, thus not modifying text.
  The question is how to pass event to the applet ant stop further propagating?</p>