How to modify the shortcut keys?

I am new to modding and I would like to know how I could modify the shortcut keys, such as being able to place my own shortcut keys (example: an option that lets me click the mouse with another button besides the mouse) or modify the button to move all infantry or cavalry but that this does not affect the scouts.

Thanks for your attention.