You could do a sprint that happens and after a delay of one second, if shift is still down then shift stays on, then, when any key is pressed disable sprinting.
You could do a sprint that happens and after a delay of one second, if shift is still down then shift stays on, then, when any key is pressed disable sprinting.