If you simply connect your midi cable from the controller keyboard Midi Out to the Midi In B port of Ty4 you should find the Tyros then behaves just as it would if you were playing it's keyboard directly. The All Parts Midi Template (and a few of the other templates to my recollection) is setup to do this by default. I used Ty4 (and Ty3) in this way.
John