title: Using JAWS to get key events
body: <p>I need to capture the current time each time a spacebar is pressed on the browser while using JAWS Screen reader.  I am able to capture the spacebar if I am not using JAWS, however, the system cannot capture any spacebar once JAWS is on.  </p>
  
  <p>Here is my code:</p>
  
  <pre><code>$(document).keypress(function(event) {
          var chCode = ('charCode' in event) ? event.charCode : event.keyCode;
          if (chCode == 32){ //32 is keyCode for spacebar
      addTime = addTime + Number(new Date()) + ",";
      var x = document.getElementById("spacebar");
      alert("spacebars!!!");
      }
  });
  </code></pre>
  
  <p>I would like to know what to do so that I can capture the current time each time a spacebar is pressed.  </p>
  
  <p>Funny enough, each time a spacebar is pressed, JAWS reads out "space" but the event is not captured at the code level.</p>
  
  <p>OR  - Since JAWS reads out "Space" when I press the spacebar, does anyone know how I can capture JAWS event?  Since it recognizes it when I press spacebar, I am wondering if I can capture the event directly from JAWS.  Any thoughts?</p>