The two-input form of KEYBOARDON once again outputs the correct code from KEYBOARDVALUE for non-Latin characters when called from the "keyup" instruction list. This was accomplished by refactoring the logic which gets the keycode to be called from both WM_KEYUP and WM_KEYDOWN.