How do I stop Sprinting whilst Croucing?

Here’s what mine looks like in a prototyping project.

I use enums for each movement state.
Standing, Crouched, Prone… walking, jogging, sprinting etc.

Each individual movement state is used to define a “speed state”.

I use the “Speed State” for a data table lookup and set the given value as the new speed.