Did you get a response from anyone?
I’m trying to do the same thing. It seems that the RetroPie frontend can take the keyboard commands, but the emulator doesn’t.
It might have something to do with the fact that the Ultrimarc is keyboard #2.
I’d be interested in any answers you get.