title: onKeyDown not always called in Android app
body: <p>I've created a simple android game, based on the Lunar Lander sample, and I'm having a problem with handling key events.  When the activity starts, the only keys that onKeyDown or onKeyUp get called for are the dpad up/down/left/right keys.  Neither the menu, back, or dpad_center keys trigger onKey methods.  However, once I've pushed one of the dpad up/down/left/right buttons, pressing the menu, back, or dpad_center keys do trigger these methods.  I'm not getting any errors, or any indication of what's going wrong.</p>
  
  <p>It's possible that the focus is set wrong - the activity is started from a button on screen, so it could be in touchscreen mode.  If that's the case, shouldn't touching the back button get me in to the right focus mode so that I can catch the event?</p>
  
  <p>I'm using the emulator from SDK-1.5r3.  I have not been able to try this on a real phone yet.  Here's my onKeyDown.</p>
  
  <pre><code>public boolean onKeyDown(int keyCode, KeyEvent msg)
  {
      Log.d(TAG, "onKeyDown: " + keyCode);
      return super.onKeyDown(keyCode, msg);
  }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Matt </p>