You can get cables that are joystick at one end, and two midi connectors (in and out) on the other.

Note that you plug the "in" cable into the "out" on your keyboard...