No, with going via JNI. Because Java runs in its own VM ie the JVM, it cannot proccess system wide keyboard input which is what you are suggesting.

Chris