title: How to detect arrow keys using JavaScript on iPad with Bluetooth keyboard
body: <p>I cannot find a way to detect arrow keys in a text field in Safari and Chrome on an iPad when a bluetooth keyboard is used.<br />
  Using this test HTML and JavaScript, touch the input field to give it focus.<br />
  Using the arrow keys nothing happens, but type letters and numbers and the keydown events occur.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Test page.&lt;/title&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form&gt;
      &lt;input id="input" style="width: 600px;" type="textarea" /&gt;
    &lt;/form&gt;
    &lt;div id="keydisp" style="width 600px; height: 50px"&gt;&lt;/div&gt;
    &lt;script type="text/javascript"&gt;
      $(document).keydown(function(event) {
        var keyCode = event.which;
        document.getElementById("keydisp").innerHTML = "key pressed: " + keyCode;
      });
    &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is it possible to detect the arrows?</p>