Fail to read Input Mapping Value

Hi there…

Using Engine Version 4.20.2

i tried to create a Function, that gets the Input Setting, gets an Action by Name and reads the two Keys bound to that.

The Keybinding always looks like that:

First is the Keyboard,
Second is the Gamepad.

Every additional Key will be after the gamepad.

So… this is the Core problem part of my Function:

Now i´m really confused about the Index… Since Unreal seems to count reversed for Inputs…

But my Problem is, that the Select on the Right Side, always returns the Gamepad Input… and not the Keyboard… Even if the PlayerInputSystem is 100% “Keyboard”.

Any idea what causes that problem? Or is there something wrong with my Indexes (but it should be 0 and 1)?