Simple user input hook for Java using JNA