Called when a key is pressed/touched. Parameters are the note of the key (int) and the vertical position of the touch on the key (double)
final Function(int, double)? onNotePressed;