title: Running function on clicking a letter on the keyboard of Android
body: <p>I have a function that should run when pressing the keyboard letter of Android:</p>
  
  <p>The application is built in HTML + PhoneGap </p>
  
  <p>My input:</p>
  
  <pre><code>&lt;input type="text" onkeydown="Refresh();" onkeypress="Refresh();" id="MyInput" /&gt;
  </code></pre>
  
  <p>refrsh function:</p>
  
  <pre><code>function Refresh()
  {
     alert('Now Refresh!');
  }
  </code></pre>
  
  <p>alert appears only when delete a letter and when clicking on the space, why?</p>