Extracting a window controller and making keydown work again.