use trigger, make a dummy unit for the command card the player controls. than use triggers to make it so that when player presses button A on dummy unit's command card, the actual unit you dont want them to control will do what you intended button A to do.
Oh, I see, that's an idea! but I want it to be on every individual units which is a lot of units. I get what you mean. I have actually done this as well, but this is more of macro management then micro management. I am looking for the latter.
I have found the solution to this. All i needed to do was to make it commandable but under abilities, i take away the move command.
Under the command card, i take everything away besides the abilities i want the unit to have.
In WC3, there was a trick to remove the smart commands, not sure, if it works in SC2, though:
Add a rally ability, so every right-click will set a rally point (aka do nothing) instead of issuing a move order.
Maybe there are better ways, it might even be possible to edit the move and attack abilities to not accept smart commands? I don't know.
You can remove the functionality of smart click with
UI disable smart click for [player].
You won't be able to attack or move with the mouse. All of your abilities should still work including move. If you leave move on your command card you can hit M and click to move. You can remove the hotkey and hide the button if you dont want it. You'll still be able to issue orders if you want to move the unit.