Function getCurrentKeyboardLayout