KeyPress::getTextDescription() returns ‘Shift + #’ instead of ‘Shift + 3’ in OSX. This probably happened during the cocoa switch. In Windows it still returns ‘Shift + 3’ which is correct.
If you pass ‘Shift + #’ into KeyPress::createFromDescription() it does work b.t.w.
Actually, just looking at this, it seems to be impossible to get the ‘3’ for that event… And a quick look at what happens in XCode’s key mappings shows that it has the same behaviour. Annoying, but I can’t see any way around it!