If you are getting stuck notes when recording MIDI with an external keyboard it usually indicates a problem with your MIDI/Soundcard on the PC. There is not really anything you can do about it if that is the case, other than getting another MIDI interface. Many soundcard drivers have problems recording MIDI even though they can playback MIDI files OK. Recording is a lot more demanding than playing back.