title: How can I generate a keyup event with a specific keycode in IE8?
body: <p>I need to generate keyup events in IE 8 using native DOM functions (no jQuery). The following code generates, fires, and receives the event, but the keyCode is always 0. How do I properly pass the keyCode?</p>
  
  <pre><code>&lt;form&gt;&lt;input id="me" type="submit" /&gt;&lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
  var me = document.getElementById("me");
  me.attachEvent("onkeyup", function(e) {
    alert(e.keyCode); // =&gt; 0
  });
  
  document.getElementById("me").fireEvent('onkeyup', 13);
  &lt;/script&gt;
  </code></pre>