or you could use the on released pin to stop the running. so on pressed begin sprint, on released end sprint.