Please forgive me for jumping in at the end - I did read some of the posts - rather lightly, I confess in advance.
Is it possible that your external keyboard has the MIDI parameter Local set to 'Off'? That is something us keyboard players routinely did/do, to stop a doubling effect of any keyboard notes triggering the internal keyboard's sound, then the MIDI data coming back into the keyboard ALSO triggering a 2nd note, hence doubling.
SO - just wondering if perhaps Local control is off.
Forgive me if I missed the mark on the above,
Bob Bone