Is there a way to put one keys actions on higher priority than others?

I want to be able to hold down my run key, but also press a key to sprint and it will cancel the run until I unpress the sprint key, in which the run will continue, but all in one motion, so that my character doesn’t stop moving at all.

Using several switches and gates could work

I think he’s going to want specifics. I’ve, personally, never used sprint for most of my characters run (or walk) fast enough to match up with the map size