fix keyboard layout and hotkey parsing