code: def send_key(self, key, repeat=1):
                  
          for _ in range(repeat):
              self.mediator.send_key(key)
          self.mediator.flush()
docs: Send a keyboard event
          
          Usage: C{keyboard.send_key(key, repeat=1)}
          
          @param key: they key to be sent (e.g. "s" or "<enter>")
          @param repeat: number of times to repeat the key event