If you want to remap your keyboard keys or mouse buttons to certain keys, use "Input Remapper" by sezanzeb. It's VERY simple, it has a GUI, and it just WORKS. I just
HydraMouse – Remap mouse buttons and assign various actions or macros to them, even if your mouse has more than 5 buttons!