Hi
@Duke I made this for AZERTY keyboard. I removed all characters which aren't accepted by AMSDOS (including space), and included all the allowed ones. Should be error-free but who knows

If this is what you want to do I can correct the QWERTY one to include only AMSDOS allowed characters as well.
key_translate:
db '.', 13,'3','6','9',0x0,0x0,0x0 ; numeric keys
db '0','2','1','5','8','7',0x0,0x0 ; numeric keys
db 0x0,0x0,0x0,'4','#', 13,0x0,0x0
db 0x0,0x0,'m',0x0,'p','^',0x0,'-'
db 0x0,0x0,'k','l','i','o',0x0,'à'
db 0x0,'n','j','h','y','u','è',0x0
db 'v','b','f','g','t','r',0x0,0x0
db 'x','c','d','s','z','e',0x0,'''
db 'w',0x0,'q',0x0,'a', 27,'é','&'
db 0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0
key_translate_shift:
db '.', 13,'3','6','9',0x0,0x0,0x0 ; numeric keys
db '0','2','1','5','8','7',0x0,0x0 ; numeric keys
db 0x0,0x0,0x0,'4',0x0, 13,0x0,0x0
db '/','+','M',0x0,'P',0x0,0x0,0x0
db '.',0x0,'K','L','I','O','9','0'
db 0x0,'N','J','H','Y','U','7','8'
db 'V','B','F','G','T','R','5','6'
db 'X','C','D','S','Z','E','3','4'
db 'W',0x0,'Q',0x0,'A', 27,'2','1'
db 0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0