code: def internal_reset(self):
          
          log.critical("PIA internal_reset()")
          self.empty_key_toggle = True
          self.current_input_char = None
          self.input_repead = 0
docs: internal state reset.
          used e.g. in unittests