You can bind the exitui console command to a key to quickly close our menus without having to click the EXIT button. Open your F1 console and enter one of the following commands.
Bind it to Escape
bind escape exitui
Pressing Escape will now close any supported server UI you currently have open.
Bind it to Tab
If you'd rather close menus when opening or closing your inventory, you can bind it to Tab:
bind tab "inventory.toggle;exitui"
It's important to include inventory.toggle when using Tab. Tab is normally used to open your inventory, so binding it to only exitui would prevent the key from toggling your inventory.
Bind it to another key
You can also bind exitui to any other convenient key. For example:
bind mouse4 exitui
Or:
bind x exitui
Replace the key with whichever one you prefer.
For most players, we recommend binding it to Escape or adding it alongside inventory.toggle on Tab.