Keyboard layout analyzer