Well yes... my original suggestion is just a convenience function.
The rest becomes a mod, with grouping (additional variables), maybe GUI features.
I thought more of a non-gui feature, just hold down a key or press a key to toggle it (like you would to shoot).