With JavaFx that shipped with Oracle Java 10 I was able to do: Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK) This is used to get if caps lock key is On. With OpenJfx 11 this call produces: java.awt.HeadlessException: null Is there a way to get the caps lock key state with openjfx?