This method of the SystemX class retrieves the currently active keyboard language.
public static int getKeyboardLanguage();
Returns the currently active keyboard language.