This can be problematic for a variety of reasons. Here’s one script with a timer solution:
https://discussions.unity.com/t/811250/2
If you would prefer something more full-featured here is a super-basic starter prototype FPS based on Character Controller:
https://discussions.unity.com/t/855344
But that one has run, walk, jump, slide, crouch… it’s crazy-nutty!!