title: How can I disable the action of pressed key by onKeyEvent on accessibility service?
body: <p>I'm developing an android app which modifies actions of pressed keys (VOLUME_UP , VOLUME_DOWN, KEYENTER)</p>
  
  <p>I have a selfie stick controller which has three buttons. I can detect which button pressed and I can something what I want to do <strong>without disable original key event of pressed key</strong></p>
  
  <p>I need to disable original key event of pressed button.</p>
  
  <p>My service tag is like this in Android Manifest : </p>
  
  <pre><code>&lt;service android:name=".CustomListener"
          android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
          android:label="@string/accessibility_service_label"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.accessibilityservice.AccessibilityService" /&gt;
          &lt;/intent-filter&gt;
          &lt;meta-data
              android:name="android.accessibilityservice"
              android:resource="@xml/accessibility_service_config" /&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>And my accesibility_service_config like this :</p>
  
  <pre><code>xmlns:android="http://schemas.android.com/apk/res/android"
  android:accessibilityEventTypes="typeAllMask"
  android:accessibilityFeedbackType="feedbackAllMask"
  android:accessibilityFlags="flagRequestFilterKeyEvents"
  android:canRequestFilterKeyEvents="true"
  android:canRetrieveWindowContent="true"
  android:notificationTimeout="50"
  android:packageNames="com.custom333.clevent"
  </code></pre>
  
  <p>And my onKeyevent function is : </p>
  
  <pre><code>@Override
  protected boolean onKeyEvent(KeyEvent event) {
      int keyCode = event.getKeyCode();
  
      KeyEvent.KEYCODE_META_RIGHT
      switch (keyCode) {
          case KeyEvent.KEYCODE_VOLUME_DOWN:
              Log.d("##CURRENTKEY", "Volume -");
  
          case KeyEvent.KEYCODE_VOLUME_UP:
              Log.d("##CURRENTKEY", "Volume +");
              return false;
      }
      return super.onKeyEvent(event);
  }
  </code></pre>
  
  <p>With this code, I can get the pressed key but I can not disable original key events.</p>
  
  <p>Is there anyone can help me about this?</p>