Senza vedere che codice hai scritto (e per cosa) ... è un po' difficile.
Solo dal javadoc di setLockingKeyState:
UnsupportedOperationException - if the host system doesn't allow setting the state of this key programmatically, or if the keyboard doesn't have this key
Quindi, che cosa stai facendo con i tasti (e quali)?![]()