                  if is_preview and cv_key == ord("t"):
                      print("\n")
                      logger.info("Toggle mask display requested")
                      self._toggle_preview_mask = True
                      self._refresh_preview = True
  
                  # Console Monitor
                  if keypress.kbhit():
                      console_key = keypress.getch()
                      if console_key in ("\n", "\r"):
 
</s> remove                     logger.info("Toggle mask display requested")
 </s> add                     logger.verbose("Toggle mask display requested") </s> remove                 if is_preview and cv_key == ord("t"):
 </s> add                 if is_preview and cv_key == ord("m"): </s> remove                     if not preview_trigger_set and os.path.isfile(self._gui_preview_trigger):
 </s> add                     if os.path.isfile(self._gui_triggers["mask_toggle"]):
                        self._toggle_preview_mask = True

                    if not preview_trigger_set and os.path.isfile(self._gui_triggers["update"]): </s> remove         self._display_mask = not self._display_mask
 </s> add         display_mask = not self._display_mask
        print("\n")  # Break to not garble loss output
        logger.info("Toggling mask display %s...", "on" if display_mask else "off")
        self._display_mask = display_mask
                  if is_preview and cv_key == ord("t"):
                      print("\n")
                      logger.info("Toggle mask display requested")
                      self._toggle_preview_mask = True

  
                  # Console Monitor
                  if keypress.kbhit():
                      console_key = keypress.getch()
                      if console_key in ("\n", "\r"):
keep keep keep keep replace keep keep keep keep keep
 Updates
  - Change shortcut key to M
  - Slight optimizations
  - GUI support for mask toggling 
scripts/train.py