Replace chip (PCB) in usb midi keyboard with arduino

And this is the schematic of the circuit that actually works: