Non English Keyboard Layout

Hello, I am trying to make a simple sketch with my Arduino Due, with the Keyboard library executes PowerShell and then it runs a couple of commands.
I've been having a lot of problems with some characters, instead of writing "(" it writes "=" for example. I've been doing some research and I've found that this is due the Keyboard Layout, and can be solved by editing the HID.cpp file, the keyboard layout its stored inside an array called : "uint8_t _asciimap[128]" but I don't know where to start, what values or numbers should I write, so Can you Help me with that?

And if anyone has already modified its own file for using the Spanish keyboard layout, it would be very nice of you if you could share the modified file

Thanks!

I Just realised that there is no such "uint8_t _asciimap[128]" in my HID.cpp file, maybe I am looking at the wrong file :

C:\Users"My user"\Documents\ArduinoData\packages\arduino\hardware\sam\1.6.11\libraries\HID\src

The map is in libraries/Keyboard/Keyboard.cpp

The keycodes are from the USB HID specification, code page 7.

http://www.usb.org/developers/hidpage/Hut1_12v2.pdf

The keycodes represent a physical key position on the keyboard. The OS maps those keycodes and modifier keys to glyphs based on your selected keyboard layout. The table maps glyphs to keycodes and the shift modifier.