This is using Catalyst, right? UIKeyCommand is a UIKit name, not an AppKit one. And Catalyst doesn't exist prior to Catalina. They've added a whole other (temporary?) operating system. It's perhaps not surprising this has a lot of bugs. Classic wasn't perfect, either.