Hello, here a few findings from me: 1) NEdit's text window is different from Motifs text widget. IIRC it was derived from it some long time ago. This is the reason, why it behaves different.
2) I do recall in the early 2000s NEdit had some strange behaviours with CAPS-Lock and Numlock etc, so called "modifiers". Ctrl-S did not save when one of the modifiers was on but inserted an control code like <DC3>. In some later version of NEdit this was fixed. Maybe using some "tricks", which may still be in the code and interfere with a recent Motif. 3) There is a "magic" workaround: I have a "old" machine with NEdit 1:5.6~cvs20081118-8.3 + OpenMotif 2.2.3(*) (Debian 7.1) and a "new" machine with Nedit 1:5.6a-5 + Motif 2.3.4 (Debian 9.8). Recipe: Startup new machine and login via ssh to the old machine and invoke NEdit. Numeric keys work as expected just like working locally on the old machine. Now invoke NEdit on the new machine and the numeric keypad works for the rest of the day! (Until restart of X11 actually). It "works" the other way around, also: Startup old machine and login via ssh to the new machine and invoke NEdit. Numeric keypad is not working but also doesn't work with the local version of NEdit on the old machine. Until restart of X11. For me this is strange, not being familiar with X11-client-server topology. Maybe for someone else it provides a useful hint. (*) You have to self-compile NEdit with OpenMotif 2.2.3-4 to replace LessTif. Markus