8.11 WCAG 2.2 Success Criterion 2.1.2 − No Keyboard Trap
Very often, people with disabilities can only use a keyboard to control a webpage. Ensure the keyboard can be used to control or move the focus away from the dialogue boxes, popups or other windows.
Before Rectification
Websites often have popup windows, such as for help content as shown in the example above. A keyboard user may find himself being trapped in the popup without an easy way to return to the main content.
After Rectification
By incorporating a Close button in the popup window, users can escape the trap of that window by using the Tab key to move to the Close button and press Enter.
WCAG 2.2 Reference:
https://www.w3.org/WAI/WCAG22/Understanding/no-keyboard-trap