Make the Close Window keyboard shortcut actually work.