code: public void setShowSearchKey(boolean show) {
          mShowSearchKey = show;
          if (show) {
              mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
          } else {
              mSearchInput.setImeOptions(EditorInfo.IME_ACTION_NONE);
          }
      }
docs: Sets whether the the button with the search icon
  will appear in the soft-keyboard or not.
  
  @param show to show the search button in
  the soft-keyboard.