Add a proper event loop. Hitting Esc will quit.