MIDI is a standard protocol for connection music devices.
Originally, it was used to control other devices, like turning them
on or off, setting volume levels, and so forth.
At some point, people invented music generators like synths that
could be 'played' by MIDI code.
MIDI was set up so that any device could connect with any other
MIDI device.
So, any keyboard with a MIDI output connector should work with
any adaptor.