I’ve found an issue in MidiKeyboardComponent::resetAnyKeysInUse implementation.
This is called when focusLost is called on a MidiKeyboardComponent.
The issue is that it send an all note off while it should only send note off for note on triggered by the mouse down.
Because of this, it currently sends note off for events which may have been displayed because of a MIDI keyboard.