KeyListener isn't working while jFrame not active

Printable View