and the serial monitor shows my keystrokes
I can't read the music format.
Keyboard.press(key); delay; 500, Keyboard.release(key)
Anyway, i removed Serial.print(key) and replaced it with
I hope you mean "something like", because there are problems with that snippet.
Keyboard.press(key); delay(500); Keyboard.release(key);