Make stamina value only drain when sprint button is held and player is moving?

What would I have to change to add this in?