code: public static void toggleKeyboard() {
          InputMethodManager imm = ((InputMethodManager) QuickUtils.getContext().getSystemService(Context.INPUT_METHOD_SERVICE));
          imm.toggleSoftInput(0, 0);
      }
docs: Toggles the SoftKeyboard Input be careful where you call this from as if you want to
  hide the keyboard and its already hidden it will be shown