Next, you are going to need to copy and paste (or type) the following into the console:
bind key(whatever you want) forward;sprint
But to unbind however, you just enter:
bind key(the one chosen for the autosprint bind) ""
If you would like to stop running, just press the forward key (W) and the sprint key (Shift) !