Question about game inputs and FInputModeUIOnly

Hello guys!

I’m studying both UMG and Slate, and I was searching for a solution for my problem. I’m trying to find a way to handle keyboard events/game inputs when the input is configured to FInputModeUIOnly. I looked around in the internet, but I didn’t find anything useful in C++.

Do you have any suggestions to deal with this situation?