Keyboard Issue

hi ! I'm trying to use keyboard.h to setup a little automation script .... my issu is some of my key board on French Canadian, some are English Canadian and other are English US ... so some character is sometime mess up like an "/" is replace by a é etc...

I know I need to change it in the HID.cpp but I don't know wich code I need and I'm afraid that it won't work with all my keyboard...

So I want to make my script "universal"...

My idea was to do an alt + code ascii like this :

Keyboard.press(KEY_LEFT_ALT);
Keyboard.press('4');
Keyboard.release('4');
Keyboard.press('6');
Keyboard.release('6');
delay(100);
Keyboard.release(KEY_LEFT_ALT);
then release

my script is pretty small so it was ok for me but it does not work

Some one have a better idea ?

Thanks !