A sampe projeect which uses a "jnativehook" library to provide global keyboard and mouse listeners for Java.