In addition to the "UPlayerInput",where else can I get where a key is down?

I want a way more deeply,just get the key state from the system call.

The reason I want it is: When my HUD is shown, I need set the input mode only UI,then I can’t get key state from the uplayerinput.

Any one can help me? Thanks a lot for any reply;