in reply to Sending keystrokes (linux) ?!?

You probably want to look at X11::Protocol