./framework/KeyInput.cpp *looks to be* handling some transformation between system keycodes and application keycodes but it's going to take me some figuring to sort it out. I haven't looked at c++ for over 20 years. Maybe you can explain it, point me to an explanation, or if I get it figured out I'll post it here.