title: JavaScript Shows Same KeyCode
body: <p>In my ios application,I want to detect return key.So i used this javaScript.</p>
  
  <pre><code>function onKeyPress(e)
  {
     alert(e.keyCode);
     if (e.keyCode == 13 ) {
       window.location.href = "newline://buttonClicked";
     }
  }
  </code></pre>
  
  <p>When I use internal keyboard I can get correct key code,but if I use external keyboard it always gives <code>0</code> value.</p>
  
  <p>How can I detect correct key code from external keyboard?  </p>