When macOS Secure Input breaks global hotkeys

How I diagnosed a recurring Raycast hotkey failure, traced it to Ghostty and macOS Secure Input, and fixed it without restarting my Mac.