Well, "2" on the MacBook Pro keyboard registers as 0, and 5 registers as 5. Unfortunately, 0 also registers as 0. But Shift+2 registers as Shift+0, while Shift+0 registers as Shift+parenright, which is why I thought at first I could get away with remapping.
With control and alt, b and e still register as 2 and 5 (e.g. ctl+2). With shift, they register as a multiple keypress shortcut, written as B,s and E,E. The other pitch letters also appear to register as multiple keypresses with shift (e.g. C,C).
It would be very helpful to debug the actual keycodes, thank you. Can you point me to a configuration setting to change at runtime or compile-time, or send through a patch or a git branch?
You also mentioned on the earlier thread that the keycodes are being "munged." If it's not too much trouble to point me to the place in the codebase where that happens, I could also then take a look and try to see if it needs to be changed for the Mac.....or at least my Mac. I don't have a lot of experience with C/C++, but I am very game to try. I also know MacPorts has a robust infrastructure for adding patches to upstream source at distribution time, so that is where anything that varies across Mac OS versions or hardware probably belongs.