Keyboard Maestro simply sends the MIDI note to the system, you then need other software to direct that MIDI note.
There is an app, maybe its Audio MIDI Setup, maybe something else, I'm not sure, I don't really use MIDI myself, that lets you configure where MIDI things go.
But it's not something Keyboard Maestro controls.