Adafruit MacroPad RP2040 - AZERTY Layout

I just received the macropad and I followed the tutorial from adafruit to be able to make it into a macropad. Its working well. The only problem is that I usually use an azerty keyboard and I have to switch to a qwerty keyboard for the macropad to send the characters coded in the script. How do I get it to work correctly when I’m on the AZERTY (FR) keyboard?

Thanks in advance for the help.