code: @UiHandler("m_searchInput")
      protected void onSearchInputKeyPress(KeyPressEvent event) {
  
          if (event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER) {
              Scheduler.get().scheduleDeferred(new ScheduledCommand() {
  
                  public void execute() {
  
                      m_tabHandler.selectResultTab();
                  }
              });
          } else {
  
              Scheduler.get().scheduleDeferred(new ScheduledCommand() {
  
                  /**
                   * @see com.google.gwt.user.client.Command#execute()
                   */
                  public void execute() {
  
                      ValueChangeEvent.fire(m_searchInput, m_searchInput.getText());
                  }
              });
          }
      }
docs: Handles key press events of the search input field.<p>
  
  @param event the key press event