I assume you want to make it a single keystroke,say shift F to change tanks.
Thats as simple as assigning it to a single key,I can switch tanks by pressing the "F" key only.
Goto "mapkeys" select the control,there are several,flight,views,etc. find the function you want to change and simply reassign it.
Hope that helps both you!