Most keyboards have a MIDI port, which can be used to connect the instrument to a computer. Alternatively, you can use a USB cable.