Most hotkeys are set in assets/units files, which oddly enough also contain hotkeys unrelated to units. The files in question are builds, commands and controls. There are also a few hotkeys set in python, but odds are that you shouldn't touch those as they are mainly for debug purposes.