@Override
  public ScreenView handleKeyPress(KeyPress keyPress) {

    switch (keyPress.getType()) {
      case Enter:
        return inputModeScreenPresenter.returnToNextScreen();

      case Character:
        inputModeScreenPresenter.character(keyPress.getCharacter());
        break;

      case Backspace:
        inputModeScreenPresenter.backspace();
        break;

      case Delete:
        inputModeScreenPresenter.delete();
        break;

      case ArrowLeft:
        inputModeScreenPresenter.arrowLeft();
        break;

      case ArrowRight:
        inputModeScreenPresenter.arrowRight();
        break;

      case Home:
        inputModeScreenPresenter.home();
        break;

      case End:
        inputModeScreenPresenter.end();
        break;

      case ArrowUp:
        inputModeScreenPresenter.arrowUp();
        break;

      case ArrowDown:
        inputModeScreenPresenter.arrowDown();
        break;

      default:
        break;
    }
    return this;
  }
The input mode in the top screen.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/screen/top/InputModeScreenView.java