title: Android: onKeyDown does not trigger until after mouse click
body: <p>I have an onKeyDown Event which is supposed to display an image once triggered, but I have noticed that despite pressing the corresponding key several times, the image does not appear until I click anywhere on the canvas with my mouse. Any suggestions on the actual problem and how to proceed? Pretty new to the concept so not quite sure what may be missing.
  *Edited and pasted class in its entirety. 
  Thanks</p>
  
  <pre><code>public class BuccaneerView extends TileView {
  
  public static final int PLAYER = 1;
  public static final int GREEN_STAR = 2;
  
  
  
  Coordinate P_Location;
  
  public BuccaneerView(Context context, AttributeSet attrs) {
      super(context, attrs);
      initBucc();
  }
  
  private void initBucc() {
  
      this.setFocusable(true);
  
  
  
      Resources r = this.getContext().getResources();
  
      resetTiles(4);
      loadTile(PLAYER, r.getDrawable(R.drawable.aerialplayer));
      loadTile(GREEN_STAR, r.getDrawable(R.drawable.greenstar));
  
      /**/
  
      P_Location = new Coordinate(5,5);
      setTile(PLAYER, P_Location.x, P_Location.y);
  
  }
  
  
   @Override
      public boolean onKeyDown(int keyCode, KeyEvent msg) {
  
       if (keyCode == KeyEvent.KEYCODE_SPACE) 
       {
  
           setTile(GREEN_STAR, 1, 0);         
       }
  
  
       return super.onKeyDown(keyCode, msg);
   }
  
   public void update()
   {
  
  
   }
  </code></pre>
  
  <p>}</p>