If you mean pressing w instead of e, yes that is a micromanagement disaster.
And, you can turn the keys off and on whenever you want easy enough with another key.
Those keys can be tough though.
Case closed?
If you read the initial post you see that the task is to be able to create custom keys for many different units each. Doing it in the way you suggested means you have to assign an "activation"-key for each unit to access its key-customization. While losing the default-function of the respective key.
Micromanagement disaster.
Of course if you dont care about making use of your whole keyboard and remembering which key stands for which unit and you you learn to press the respective key EVERY TIME you select respective unit... than, indeed, there is "no limitation to your imagination with autohotkey"...
AHK is no solution to the OPs problem I'm afraid.