migration from jnativehook to custom keyadapter