TAB key for closing widgets (prevent cycling)

Hi, i want to use Tab key to open and close my widget but when i click on something inside widget then tab key will cycle to next widget. Is there a way to prevent it. I did try OnKeyDown event on each widget which partially solves the issue because then when you hold it it keeps opening and closing widget fast which is not the functionality i want. I want to actually use enhanced input. Any help would be appreciated