Impemented ctrl+Q keystroke like shortcut for closing the main window