Does anybody know why when removing and adding an input mapping context on toggle its triggering the key im holding down?

Im looking at similar questions and I think someone mentioned that its happening when theyre holding down a button (same thing is happening to me) they said that removing and adding the imc is possibly triggering the enhanced IA that is being held.

For context I have a double tap sprint where if i press a movement key like w in quick succession then i sprint, and when i remove and add the IMC in quick succession then it also automatically sprints.

so i guess i know the problem but does anybody know how I can avoid it doing that?

yeah if anyone knows how I can do whatever he just said that would be greatly appreciated :laughing: