          2 : down
          3 : left
          Should not be called in the same program as getch(). """
  
          if self.is_gui or not sys.stdout.isatty():
              return None
          if os.name == "nt":
              msvcrt.getch()  # skip 0xE0
              char = msvcrt.getch()
              vals = [72, 77, 80, 75]
 
</s> remove         if self.is_gui and os.name != "nt" or not sys.stdout.isatty():
 </s> add         if (self.is_gui or not sys.stdout.isatty()) and os.name != "nt": </s> remove         if self.is_gui and os.name != "nt" or not sys.stdout.isatty():
 </s> add         if (self.is_gui or not sys.stdout.isatty()) and os.name != "nt":
        if (self.is_gui or not sys.stdout.isatty()) and os.name != "nt":
          2 : down
          3 : left
          Should not be called in the same program as getch(). """
  
        if (self.is_gui or not sys.stdout.isatty()) and os.name != "nt":
              return None
          if os.name == "nt":
              msvcrt.getch()  # skip 0xE0
              char = msvcrt.getch()
              vals = [72, 77, 80, 75]
keep keep keep keep replace keep keep keep keep keep
 bugfix: Windows - Stop training when terminate button pressed 
lib/keypress.py