This method of the IMECompositionMessage Class retrieves the key code from an IMECompositionMessage object.
public int getkeyCode();
Returns the message key code (which can be 0 if keyCode hasn't been specified for the message).
setKeyCode