Identify shortcuts by key code and modifiers instead of strings
masterWhen working with MASShortcut, do not rely on the keyCodeString property to uniquely identify a shortcut. The keyCodeString is sensitive to the user's current keyboard layout and will change if the layout is switched (e.g., a shortcut might return ^2 on a US layout but ^ě on a Czech layout).
To ensure a shortcut's identity remains consistent across different keyboard layouts, you must identify it using its key code and modifiers (e.g., combining a specific key code like kVK_ANSI_2 with a modifier mask like NSControlKeyMask).