So....if it happens when the keyboard is off...the keyboard is NOT the cause.
Does it happen ever time, at the same place in the song? If so, you have a repeatable event. The next step in the detective process.....
It has to be in either the midi track itself or in the synth. You say there is nothing showing in the midi track that would seemingly allow this to occur......So remove the synth from the track and load a different synth and see if the problem is still there.
If a new synth does the same note hang in the same place.... you have a midi issue in the track that you have not resolved.
If the new synth plays the part perfectly with no note hangs, you have some sort of problem in that synth.