title: e.keyCode in iOS Safari on keyup event
body: <h1>Update</h1>
  
  <p><strong>I have been trying so far in the simulator along physical keyboard. That was causing the problem. However with soft keyboard it works as desired. <code>keyup</code> event has a well defined <code>keyCode</code>.</strong></p>
  
  <hr>
  
  <p>Please find the code at <a href="http://codepen.io/anon/pen/XJPBVy" rel="nofollow">this pen</a></p>
  
  <p><code>&lt;input type="text" id="test"&gt;</code></p>
  
  <p><code>var test = document.getElementById('test');
     test.addEventListener('keyup', function(e) {
       alert(e.keyCode);
     });</code></p>
  
  <p>iOS safari display <code>0</code> as the keyCode for any key pressed (<code>keyup</code> event). Any pointer would be very helpful.</p>
  
  <p><strong>Update</strong></p>
  
  <p><code>e.keyCode</code> as well as <code>e.which</code> works with <code>keypress</code> event, but I could not get it to work with <code>keyup</code> event.</p>