crashes on macOS when pressing Cmd key
Midi device == musical keyboard connected through USB;
keyboard == qwerty type computer text input device.
1 - Open MuseScore 3.6.2 on an M1 Mac Mini with macOS Monterey.
2 - Input musical notes using the attached Midi device, alter them using keyboard keys.
3 - At some point, use the Cmd key on your keyboard (e.g. to bring up Spotlight).
4 - Watch in horror as MuseScore crashes.
Never use the Cmd key while MuseScore has focus. This is extremely hard to wire one's brain to, though, I certainly keep failing.
This bit of 70's wisdom should still apply today: No application should die on user input, however faulty. If input can't be used, it should be ignored, or the program should exit emitting a user-readable error message. Crashing is to be considered impolite.
My Mini is controlled by a virtual keyboard through Synergy (M1 build 1.14.1). I verified that MuseScore will also crash using a physical keyboard, although it seems far more tolerant to the Cmd key there (needs a good number of attempts instead of just one or two). The issue might still be connected to the presence of a virtual keyboard, and/or to running inside Rosetta2.