``` Event::WindowEvent { event: WindowEvent::KeyboardInput { input, .. }, window_id, } if window_id == window.id() => { if input.virtual_keycode == Some(VirtualKeyCode::Escape) { *control_flow = ControlFlow::Exit } } ```