LilyGo BadUSB - ATMEGA32U4 - Keyboard layouts

I have a LilyGo BadUSB - ATMEGA32U4 and I like to work with it, because I can automate many somewhat repetitive and tedious processes, it allows me to solve problems from multiple teams, in a matter of seconds; My problem is that I don't know how to configure it to detect the keyboard layout of the device I'm working with.

Does anyone know if it is possible that the LilyGo BadUSB - ATMEGA32U4 detects a signal from the device it is connected to and in response to that executes specific commands; so as not to be reconfiguring the LilyGo BadUSB due to compatibility problems.