code: def KeyPress(self, key, n=1, delay=0):
          
          self._delay(delay)
          cmd = Command("KeyPress", 'KeyPress "%s", %s' % (key, n))
          self.add(cmd)
docs: Press key for n times.
          
          :param key:
          :param n: press key for n times