I believe Alt+F4 is the shortcut to close a window. Alt+Q to close would be the shortcut to completely close an application (just like Cmd+Q on macOS...