Keyboard bindings using key-codes instead of key-symbols

Is it feasible to switch to keycodes instead of characters for keybindings?

It’s really annoying to set up the keyboard when using a non-QWERTY keyboard layout as the game ignores the key position on my keyboard and instead just “reads the label on the key”, but labels may be heavily shuffled around and make absolutely no sense.

I’m normally OK rebinding keys on games, but on shooters where you are fine after rebinding WASD, but RTSs naturally require way more bindings to be changed. And, nowadays FPS games seem to have switched to using keycodes anyways.
Also, having a binary file in the days of JSON everywhere (even though we hate it) seems weird. It should be easy to share and also backup configs. In CS people tweak and share their bindings a lot.