This is a small program which captures keyboard and mouse events using the Linux evdev interface and sends them to a specific X display using the XTEST extension. I use it in a Dual-seat X setup.
The program license is the GPL, as specified in the file LICENSE.GPL, included in the archive.
The package depends on ErrUt.
You can download the source code here:
I don't know if this will work in the same way on other keyboard types, but on mine, the following special combinations work:
As of version 2.0.0, you can also use a config file in which you can define your own actions for specific key combinations.