Connect the USB cable from the keyboard to your computer.
Connect the MIDI Out port to a MIDI In port on a MIDI interface, and connect the MIDI In port on the keyboard to a MIDI Out port on the MIDI interface using MIDI cables. Connect the MIDI interface to your computer.