Access all key events?

Hi, I am currently working on implementing a system for rebinding action/axis mappings in my game. I am currently at the stage where I would like to detect a new key to assign to the action.

I have not found a way to do this yet, the closest thing I have found is

PlayerInput.h
/** The current game view of each key */
TMap KeyStateMap;

From my understanding I could get the state of each key this frame from this array, But its private. So I guess making a get function in PlayerInput is not the intended way to do this?
Any help would be super appreciated!

Yhep… After a good nights sleep, of course this was a lot simpler then I made it. You can bind an action to “any key” from within the editor. The event will output which key was pressed.