Connecting a button to a computer

That largely depends on how closed your closed MIDI system is. Does it have MIDI-In, or just MIDI-Out? Is there any documentation?

Then, you would need to decide what sort of MIDI message you want to be sent, when the button is pressed and when it is released.

Once that is decided, wiring up a button to a Arduino and having it send a MIDI message is fairly easy.