with alt + Q you colide with close game. crtl probably has less problems.
You can do that with GridLayout. open the file “user\Documents\Warcraft III\War3Preferences.txt”
The Hotkeys are Virtual-Key Codes in decimal
Then find and update:
[Inventory Hotkeys 0]
HeroOnly=0
Hotkey=81
MetaKeyState=2
QuickCast=0
[Inventory Hotkeys 1]
HeroOnly=0
Hotkey=87
MetaKeyState=2
QuickCast=0
[Inventory Hotkeys 2]
HeroOnly=0
Hotkey=69
MetaKeyState=2
QuickCast=0
[Inventory Hotkeys 3]
HeroOnly=0
Hotkey=65
MetaKeyState=2
QuickCast=0
[Inventory Hotkeys 4]
HeroOnly=0
Hotkey=83
MetaKeyState=2
QuickCast=0
[Inventory Hotkeys 5]
HeroOnly=0
Hotkey=68
MetaKeyState=2
QuickCast=0