Instead of using Swing's event-based keyPressed(keyEvent e)
method to detect which keys are pressed on my keyboard, I would like to do a Thread that checks which keys are pressed every x seconds (so not getting the keys through the keyPressed event triggered by the OS).
I know how to do the thread, but I don't find any method/interface (I'm currently using KeyListener) to get which keys are pressed.
Can you help me?
Thank you