works: MIDI-IN: code + schematics

What's your interface? Are you sure that you plug it correctly?
(out interface>in keyboard, out keyboard>in interface,
check MIDI thru if it exist on it.)