WindowsInput provides simple .NET (C#) classes to capture and simulate Keyboard and mouse input using Win32's SetWindowsHook and SendInput. All of the interop is done for you and there is a simple ...
You can also download the project, build it with mvn clean install and add the generated jar to your buildpath.