Al salamu alaikum brother mohamed,
Hope you're doing well,
I've watched your video about your extension and i did hear you talk about the problem with keyboard layouts changing with languages
(Qwerty,Azerty).
I would like to suggest to you a simple solution i've tried, that can make the shortcut constant across all keyboard layouts,
basically i've used event.code instead of event.key, the reason is that event.code property represents a physical key on the keyboard (as opposed to the character generated by pressing the key). you can refer back to https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
this is my basic implementation

Al salamu alaikum brother mohamed,
Hope you're doing well,
I've watched your video about your extension and i did hear you talk about the problem with keyboard layouts changing with languages
(Qwerty,Azerty).
I would like to suggest to you a simple solution i've tried, that can make the shortcut constant across all keyboard layouts,
basically i've used event.code instead of event.key, the reason is that event.code property represents a physical key on the keyboard (as opposed to the character generated by pressing the key). you can refer back to https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code
this is my basic implementation