title: How to restrict default behavior of arrow keys of remote keyboard in android
body: <p>My application works with remote Bluetooth keyboard. I have defined some predefined custom implementation on arrow keys and enter key. I want to perform only those actions whenever user press arrow key or Enter Key in my application.</p>
  
  <p>But sometimes it is still showing default behavior of keys.</p>
  
  <p>My Current Code is as follows</p>
  
  <pre><code> @Override
   public boolean onKeyUp(int keyCode, KeyEvent event) {
       if (keyCode == KeyEvent.KEYCODE_DPAD_UP) {
           // my custom work
           return true;
       }else{
           return super.onKeyUp(keyCode, event);
       }
   }
  </code></pre>
  
  <p>any idea, how I can restrict default behavior of arrow keys and enter key?</p>
  
  <p>Thanks</p>