I would say yes, but how to... hell I don't know.

What I would suggest, is to develop a pure HID device, from there you develop a Driver. This driver (or standalone application) will take care of sending the keystrokes and perform other tasks.

MIDI devices use 2 Generic Classes, MIDI Device and Audio Composite, but it is still considered as a single device...