Default Event Handler

Talking about Unity.EventSystems, what is the best way to handle events that were not consumed eg. by the selected object, or anything else (if selected object ignores the event or if nothing is selected)?
Basically, I want to have normal keyboard input for the game, but I want the GUI to have priority - when i am typing, keyboard won’t move the character. Should i NOT use UnityEngine.Input, but rather some event handler similar to UI elements? Like IUpdateSelectedHandler? How do i make sure my controller receives all unhandled events?

a simple boolean can do the dirty trick

wen you gui show up, set the boolean to false and where you manage your keyboard input, check if the boolean is true or false