Not taking keyboard language into account

I’m a laptop gamer. Until a few days ago, the game ran correctly in azerty when I chose the French language. The problem that has arisen recently is that when I launch the game, it switches to qwerty mode even though the game language chosen is French. What’s more, the PC’s built-in keyboard is normally azerty. I’ve tried several solutions to solve the problem, but nothing works. If you have any ideas about the cause of the problem, please don’t hesitate to contact me. Thanks