code: public boolean dispatchKeyEvent (KeyEvent e)
      {
          // bail if we're not enabled, we haven't the focus, or we're not
          // showing on-screen
          if (!_enabled || !_focus || !_target.isShowing()) {
  //             log.info("dispatchKeyEvent [enabled=" + _enabled +
  //                      ", focus=" + _focus +
  //                      ", showing=" + ((_target == null) ? "N/A" :
  //                                      "" + _target.isShowing()) + "].");
              return false;
          }
  
          // handle key press and release events
          switch (e.getID()) {
          case KeyEvent.KEY_PRESSED:
              return keyPressed(e);
  
          case KeyEvent.KEY_RELEASED:
              return keyReleased(e);
  
          case KeyEvent.KEY_TYPED:
              return keyTyped(e);
  
          default:
              return false;
          }
      }
docs: documentation inherited from interface KeyEventDispatcher