def fake_keypress(self, key, repeat=<NUM_LIT:1>):
for _ in range(repeat):<EOL><INDENT>self.mediator.fake_keypress(key)<EOL><DEDENT>
Fake a keypress

Usage: C{keyboard.fake_keypress(key, repeat=1)}

Uses XTest to 'fake' a keypress. This is useful to send keypresses to some
applications which won't respond to keyboard.send_key()

@param key: they key to be sent (e.g. "s" or "<enter>")
@param repeat: number of times to repeat the key event