Keyboard Reprogram not working

The translation table (from ASCII characters to key codes) is in hardware/arduino/cores/arduino/HID.cpp. It's implemented only for the US keyboard but you're free to change it to your needs.