Here is what i would do:
Go to Project Settings → Input and create a new action mapping for sprinting.
Then in your character BP get the action event and set the speed for your character when it is pressed and released.
When you start to move with holding SHIFT you should run and with releasing SHIFT you should walk.