I'm not sure why you feel a need to do it. You choose which skills to put in which slots, so you can arrange for whichever key you want for whichever slot.
Maybe I'm misunderstanding what you're trying to do.
You can have two keys mapped to the same slot so you likely can do what you're asking, look at the Keybind part of the settings UI.