overriding keyboard

I have an arduino leonardo that would needs to function as a keyboard. Unfortunately here in Belgium we use different keyboards. Therefore I would like to adapt the code in the keyboard-library.
I found the code here: https://github.com/arduino/Arduino/blob/master/hardware/arduino/cores/arduino/HID.cpp
the only thing I would need to change is the constant _asciimap[128]
But once i have done that, how do i make the arduino IDE use the new keyboard code and not the original one.

You replace the module in your Arduino installation. Its the same trailing path
...hardware/arduino/cores/arduino/HID.cpp
(You may want to save a copy of the original calling .orig or something)

Msquare:
You replace the module in your Arduino installation. Its the same trailing path
...hardware/arduino/cores/arduino/HID.cpp
(You may want to save a copy of the original calling .orig or something)

thanks
that indeed seems to be the correct file