Alright, before this gets flagged as a possible duplicate, I\'ve already tried the following code:
Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK
Poking around, I think getLockingKeyState() might be broken.
getLockingKeyState()
You could try KeyboardUtils, but it looks like that means you have to carry JNA overhead.