title: How do I generate keyboard events that don't have key code in Java?
body: <p>I'm using Robot class and KeyEvent key codes to generate all the other key events and they work fine, but I also need Hangul key(toggle Korean keyboard). Apparently KeyEvent does not have a key code for this key, so I'm stuck :( Is there a way to generate this Hangul key event?
  Is there a way to use the Windows' key code like VK_HANGUL (0x15) instead of the KeyEvent key codes? If that's possible changing all the key codes wouldn't be a problem... Or somehow take the key event once and store it permanently somewhere and use that forever...???</p>
  
  <p>What I am trying to do is creating an onscreen keyboard that has numbers, alphabets and Korean. Click on an icon and it will generate the key event of the corresponding letter so the letter is typed. (Everything except switching to Korean is working properly.)</p>
  
  <p>Being able to generate the Hangul key event would be nice but if that's not possible, is there any suggestions on how I could achieve this?
  Maybe I could bind each Korean letter with corresponding alphabet on keyboard(for example g is ㅎ on conventional keyboards that have both Eng and Korean) or something but then how do I send it to other applications?</p>
  
  <p>Sorry if this question is so all over the place. I'm just really lost.</p>