Thanks Layden,
This script assumes that the players default walking speed is 600 though. (If you changed the default in the Character Movement Component this would over-write that when the input is released.)
Do you know how to get the current value ‘Max Walk Speed’ value from the Character Movement Component and save it into a variable?