If you hit the 'sprint' button for a certain threshold, and then release it for a small period of time, and then re-press the shift button, it cancels the ongoing animation for sprinting, but still allows you to sprint.
If I can I'll attach a video of it.