Support for getting current keyboard layout