Input Key or Mapping context

Hello everyone,

I don’t know how it happened, but some of my key inputs no longer work. For example:
IA Mov → ZQSD → D and S no longer work!
IA Interact → E
IA Walk → Shift Left
no longer works
Do you have any idea why?

Thank you in advance for your reply
Hervé

I just checked the DefaultInput.Ini file and it looks correct to me.

+ActionMappings=(ActionName=“Jump”,bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=Gamepad_FaceButton_Bottom)
+ActionMappings=(ActionName=“Jump”,bShift=False,bCtrl=False,bAlt=False,bCmd=False,Key=SpaceBar)
+AxisMappings=(AxisName=“Look Up / Down Gamepad”,Scale=1.000000,Key=Gamepad_RightY)
+AxisMappings=(AxisName=“Look Up / Down Mouse”,Scale=-1.000000,Key=MouseY)
+AxisMappings=(AxisName=“Move Forward / Backward”,Scale=1.000000,Key=Gamepad_LeftY)
+AxisMappings=(AxisName=“Move Forward / Backward”,Scale=-1.000000,Key=S)
+AxisMappings=(AxisName=“Move Forward / Backward”,Scale=1.000000,Key=W)
+AxisMappings=(AxisName=“Move Right / Left”,Scale=-1.000000,Key=A)
+AxisMappings=(AxisName=“Move Right / Left”,Scale=1.000000,Key=D)
+AxisMappings=(AxisName=“Move Right / Left”,Scale=1.000000,Key=Gamepad_LeftX)
+AxisMappings=(AxisName=“Turn Right / Left Gamepad”,Scale=1.000000,Key=Gamepad_RightX)
+AxisMappings=(AxisName=“Turn Right / Left Mouse”,Scale=1.000000,Key=MouseX)

What’s strange is that if I change the shortcut, for example D → H, it works.

Hello @herve1234 ,
With the information you gave, it’s hard to help much because you’re only saying that it stopped working. It would be important to know what you changed before this happened and whether the problem also occurs in a new project, to rule out something specific to that project.

Still, here are some things you can check.
First, confirm that the Mapping Context is actually active. In the BeginPlay of the Player Controller you should get the Enhanced Input Local Player Subsystem and use Add Mapping Context to add your input context; if that is not being executed, no Input Action will fire.

Next, it’s a good idea to check whether the Input Action is actually triggering. In Play In Editor (PIE), open the console and type “ShowDebug EnhancedInput”. If you press the keys and see no activity, then the Mapping Context is not active or not correctly assigned to the player.

Also check that you don’t have two Input Actions using the same key, because if one is set to consume input, the other might never get triggered and it can look like it’s not working.

Another possibility is that a widget is capturing the input or that the input mode was set to “UI Only”. In that case, the game will stop receiving gameplay keys even though the keyboard itself is working fine.

Finally, although it’s less common, try checking whether the keyboard language or layout changed at the operating system level. Sometimes that can cause certain keys not to register the way you expect inside the game.

Hope it helps!

Hello BRGEzedeRocco,
Thank you so much for your valuable help!
It was indeed input actions using the same key.
I added an inspection system that contains IMC for the character
Great, I can breathe now.

Best regards

Hervé

same key on two actions is usualy what silently kills one of them, the higher priority context consumes the press and the other action never fires. scan the IMC rows for repeated keys, then either give them separate keys or uncheck Consume lower priority enhanced input mappings on the action that should still fire. Showdebug EnhancedInput shows which context is actually winning.
you can also try Advanced Input Rebinding System, a runtime rebinding system for Unreal Engine that flags a key already used by another action before applying it: Advanced Input Rebinding — Enhanced Input Key Remapping, Profiles & Cloud Sync | Fab