title: Capture keys typed on android virtual keyboard using javascript
body: <p>I have a web page with a textarea, and I need to capture the keys typed by the user (so that I can substitute different unicode characters for the keys typed). My current code is as follows:</p>
  
  <pre><code>$("#myTextArea").bind('keypress', function(event) {
  
      var keyInput = event.which;
     // call other functions
  
  });
  </code></pre>
  
  <p>This above code works on PCs, and iPhone/Safari. However, it <strong>fails when using Chrome on an android</strong> (samsung) tablet. For some reason when I type on the <strong>android virtual (soft) keyboard, the "keypress" event is not triggered</strong>. The android version is 5.0.2.</p>
  
  <p>If I try using <strong>"keyUp" or "keyDown", it always returns 229 for all characters</strong> (except for return key, space, backspace, etc). </p>
  
  <p>Even though the keyCode is always 229, the textarea displays the correct characters typed by the user.  Which means the device knows which key was entered, but somehow I'm unable to get a handle on this event (and the key code) using javascript.</p>
  
  <p>Here are the alternatives that I have tried so far, and their outcomes:</p>
  
  <pre><code>$("#mainTextArea").on("keydown keyup", function(event) { 
      // event.which and event.keyCode both return 229
  
  $(document).on('keypress', function(event) { 
      // function is not triggered
  
  $('#myTextArea').bind('input keypress', function(event) { 
     // comes inside function, but keyCode and which are undefined
  </code></pre>
  
  <p>Any help regarding this issue is appreciated..</p>