title: Disable DPAD keys in android
body: <p>I am trying to catch events generated by the arrow keys (UP, DOWN, RIGHT and LEFT) and disable them. Below code snippet is from one of the activity class.</p>
  
  <pre><code>@Override
  public boolean onKeyUp(int keyCode, KeyEvent event) {
      if(event.getAction() == KeyEvent.KEYCODE_DPAD_DOWN) return true;
      else return true;
  }
  </code></pre>
  
  <p>However, with those code in place, key navigation is working. I tried adding key listener to activity which doesn't work either.</p>
  
  <p>The target device is Samsung GT-I5500 with Android 2.2 version on.</p>
  
  <p>Am I missing anything?</p>