Unity decides not to make player move okay.

Im trying to fix this bug where i cannot run,prone,crouch. i can run by proning and then holding shift but i wanted to make that i need to hold shift and then use w to walk forward. with proning when i click the prone button again it wont return me normal same with crouching

Script: Fps Input

fixed

FpsController:

fixed

tried also with inputmanager to make keys but still its the same thing as before

Remember that GetKeyDown is only true for one frame- that’s the frame where the key transitions from unpushed to pushed.

If you want to detect whether the player is holding the button, use GetKey instead.

okay thanks