fix #20018: MIDI note input

Add call to MuseScore::endCmd() after processing MIDI note input,
so that the note is played and the cursor box is updated.
Merge pull request #212 from softins/20018-midi-note-input-sound

fix #20018: MIDI note input