When a modal dialog is open, pressing the Tab key should keep focus inside the modal — not let it escape to elements behind it. This is called a keyboard focus trap, and it's essential for accessibility.
In this challenge, you will build a Modal Keyboard Focus Lock. Create a modal with interactive elements like buttons and input fields. When the modal is open, pressing Tab should cycle through those elements without escaping. Pressing Shift+Tab should cycle backwards.
This ensures screen reader and keyboard-only users can navigate your modals safely without losing focus to background content.