Initial import from parent project JNativeHook.