code: @Override
      public void handle(final KeyEvent keyEvent) {
  
          final EventType<?> type = keyEvent.getEventType();
  
          if (KeyEvent.KEY_PRESSED == type) {
              adapter().keyPressed(keyEvent);
          } else if (KeyEvent.KEY_RELEASED == type) {
              adapter().keyReleased(keyEvent);
          } else if (KeyEvent.KEY_TYPED == type) {
              adapter().keyTyped(keyEvent);
          } else {
              adapter().key(keyEvent);
          }
  
      }
docs: {@inheritDoc}