I still believe whatever you're experiencing is related to the usescancodes option in DOSBox Prefs.txt