Keylistener in blueprint

How can I create a keylistener in blueprint and save it to a string or struct?
I cant use the keymappings in the project settings, because the input will be different each time.

Example, if im colliding with an object, it will listen for all key input and save it to a string.
I see that there is “Keyboard Event” and “Key” variable types and a “get key” function, but I cant figure out how they work, and cant find any helpful documentation.

So, I solved this temporarily by using the key press events, to just append to a string. But then I need to create an event for each key. But its doable. Would be good to know what the “Keyboard event” is and how it works.