How to get a FKeyEvent in player controller?

I want to intercept all the input in a controller and pass the FKeyEvent to the BLUI so I can build a UI with it. But all the keyboard events return a Key Structure that is not a FKeyEvent. Is there any way to fix that?