How to connect a MIDI keyboard to your PC
A real keyboard under your fingers makes playing on a computer feel like playing the piano: keys that respond to how hard you press, and a sustain pedal. Connecting one usually takes a single cable.
Updated 15 November 2026
Which connection does your keyboard have?
- A USB port: most keyboards and digital pianos made in the last fifteen years have one, often a square USB-B port or a USB-C port. This is the easiest way.
- Two or three round sockets marked MIDI OUT and MIDI IN: older keyboards. You need a USB MIDI interface or cable.
- Bluetooth: some newer keyboards. It works, but on Windows it is less dependable than a cable.
Connecting by USB
- Switch the keyboard on.
- Connect its USB port to your PC with a USB cable. On a digital piano, use the port marked USB TO HOST. The port marked USB TO DEVICE is for memory sticks, not for the computer.
- Wait a moment. Windows recognizes most keyboards by itself and installs them without a driver.
- Open your piano program and choose the keyboard in its MIDI settings.
Some larger or older keyboards need a driver from the maker. If Windows does not find yours, look on the maker's website under support or downloads for your model. A USB cable meant only for charging has no data wires, so if nothing at all happens, try another cable.
An older keyboard with MIDI sockets
A USB MIDI interface has a USB plug for the computer and round MIDI plugs for the keyboard. To play the computer from the keyboard, connect the keyboard's MIDI OUT socket to the interface's input. The labels on the plugs of these cables are confusing: some name the socket they go into, others what they do. If no notes arrive, swap the two round plugs. Very cheap cables sometimes lose notes, so a known brand is worth the small extra cost.
Bluetooth keyboards
Pair the keyboard in Windows' Bluetooth settings first. Not every Windows program can see a Bluetooth MIDI keyboard yet: Microsoft is still building better support into Windows 11. If your program does not list it after pairing, look for a free connector app from the keyboard's maker, or use a USB cable if the keyboard has a port. A keyboard can be connected to only one device at a time, so disconnect it from a phone or tablet first.
If something does not work
- The keyboard is not listed: switch it on before you open the program, or use the program's Refresh button after plugging it in. Try another USB port, preferably one directly on the computer rather than a hub.
- Another program is using it: on many PCs only one program can use a MIDI keyboard at a time. Close other music programs and browser tabs with a web piano.
- Notes sound twice: a digital piano plays its own sound too. Turn its volume down, or listen only through the computer.
- The sustain pedal works the wrong way round: many keyboards check the pedal when they are switched on. Switch the keyboard off, plug the pedal in, and switch it on again without pressing the pedal.
Getting rid of delay
A short delay between pressing a key and hearing it almost never comes from the keyboard or the cable: it comes from the sound output. Bluetooth headphones and speakers add a delay you can clearly feel, so play with wired headphones or speakers. Most piano programs also let you choose a shorter audio buffer; choose the shortest one that does not crackle.
In Cantoza
Cantoza lists connected keyboards in the MIDI keyboard card of its side menu and plays them with the full range of loudness and with your sustain pedal. Practice can be played on a MIDI keyboard and then also scores how hard you play and your pedaling. The shortest sound delay is set under Sounds, Output, Audio delay. All of this is free. With Cantoza Pro you can also record yourself on the keyboard straight into the Song Editor.
