Press key for n times.
        
        :param key:
        :param n: press key for n times

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