Just a thought here:

When you launch Audio Midi Setup ( Applications/Utilities ) and then select MIDI Studio and setup a virtual interface to/from keyboard have you done Test Setup to "hear" and "see" if your midi connections (communications) are working ?

My experience has been that if midi communication does not work in the Utility Audio Midi Setup then it will not work in any application.