I need to check when the user presses on a key and releases it. If a key is held in, I will do something once.
I used the keystroke to get the button I want to relat
I don't believe you can achieve what you need in Linux, because the operating system continually issues press/release signals to the JVM.
See