Hello:

Providing that the midi file has embedded the program and controllers for the tracks/channels, any keyboard should play correctly.
As an example, the Yamaha keyboards have all the GM, XG, GM2 plus the Panel tone generation, (besides other banks like Legacy, sound banks from previous models, this is what keeps compatible any midi file made from an older model to the newer, does not necessarily means that are better sounds on the new model, simply, is playing the same voices/sounds from the previous model.
Some people edit their midi files by Re-voicing each track (make a Program change) of the Midi file with the better or newer tone generation from the newer keyboard.

That is why in the Program change of each Channel/Track has the proper bank and patch number that is assigned. Most professional SMFs have this data.

I hope this helps you. keys
_________________________
mdorantes