how to connect midi keyboard to computer

i didn't know about the ATmega16U2 chip. i will definitely try this method first
thank you Pieter