This little X11 application lets you send fake keyboard presses to arbitrary windows.I wrote this a long time ago. Today I recommend xdotool instead.
This sends keyboard events to window 0x2e0000e just like you'd type exitENTER.
Without the -w parameter the current window is selected.
Use ^^ to send a single caret, use ^m to send ENTER, ^t for TAB.