Movement not working when enabling input

It seems like it only allows one input at a time. So If I hold W before enabling input and then press F, it fires the sprinting but stops the W until I release and press W again. And if I press F before enabling input and then press W, it will fire the walking but stop the F until I release and press F again. The Shift key is the most finicky one because it just won’t take any input if it’s being held down before enabling input.