Your Arduino will be virtually typing on a keyboard like this:
See the labels on the keys? No, thereThere are none. Your Windows OS has its own idea of what each key means, bybut the Arduino has no way of knowing that. Instead, you have to tell it explicitly what keyboard layout to use, e.g.:
Keyboard.begin(KeyboardLayout_fr_FR); If you don't, the Keyboard library will assume KeyboardLayout_en_US.
There is no way the computer can tell the keyboard what layout it expects.