When I tried it, it didn't work initially. All I did was set the option the then pressed alt+p in the game after selecting a unit. Then I quit the game and tried it by typing /controlunit, and this time it worked. And now alt+p also works. My guess would be that the key file had no shortcut registered, then it was written,
then loaded and used...