This modal has an input field that prevents free movement between components:

Note: Automated testing is possible. An automated test can be performed by programmatically ensuring that no element has tabindex="-1". However, if a keyboard trap is otherwise causes, a human tester or AI is required to manually check if the page contains any keyboard traps.