Previous attempts to poll keyboard events in the render loop were failing. Now using a dedicated background thread that continuously monitors for exit keys and communicates with the render loop via an atomic boolean flag. This ensures keyboard events are never missed, even during heavy rendering operations. Exit: Press 'q', ESC, or Ctrl+C 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>