So I have been working on a program in java for a while now, but I have yet to solve a annoying problem, the JFrame seems to stop listen to the keyboard, I have tried with KeyListener and KeyEventDispatcher. But not matter which one I use, it still happens. I need to program to listen to the keyboard without fail, no matter where the focus are, well it’s okay if it doesn’t when the program is minimized.