@Override public boolean onKeyEvent(KeyEvent event){
  if (!mMatchKeyCombo || mListeners.isEmpty()) {
    return false;
  }
switch (event.getAction()) {
case KeyEvent.ACTION_DOWN:
    return onKeyDown(event);
case KeyEvent.ACTION_MULTIPLE:
  return mHasPartialMatch;
case KeyEvent.ACTION_UP:
return onKeyUp();
default :
return false;
}
}

@ Override public boolean onKeyEvent ( KeyEvent event ) { if ( ! mMatchKeyCombo || mListeners . isEmpty ( ) ) { return false ; } switch ( event . getAction ( ) ) { case KeyEvent . ACTION_DOWN : return onKeyDown ( event ) ; case KeyEvent . ACTION_MULTIPLE : return mHasPartialMatch ; case KeyEvent . ACTION_UP : return onKeyUp ( ) ; default : return false ; } }
handles incoming key events . may intercept keys if the user seems to be performing a key combo .
