Fixed escape key in MainWindow.