title: How to listen to any keyboard on the whole application?
body: <p>We are trying to build android activity that listen to any key press (either character or command) something like custom <code>EditText</code>.</p>
  
  <ol>
  <li>Is there something like keyboard hook in <code>Windows OS</code> available on Android?</li>
  <li>Is it possible to listen for all key pressed for all controls (<code>EditText</code> and other controls)?</li>
  <li>Could this be achieved by an activity that runs in the background?</li>
  </ol>
  
  <p><strong>EDIT</strong></p>
  
  <p>As for security, we want to get keyboard events only for our app activity, ex: when our activity is shown and focused.</p>