Depending upon the application and the layout of the menu in the application you may be able to press ALT + F followed by the X key. ALT + F opens the file menu and then X will exit the application. If this does not work look for a quit or exit button on the menu bar and press the corresponding underlined key. This should do the trick for you.

Answer from Mark S. on Stack Exchange
🌐
Reddit
reddit.com › r/windows › easy keyboard shortcut to actually close a program?
Easy Keyboard Shortcut to actually close a program? : r/windows
November 12, 2020 - every seperate "window" of windows explorer is a seperate instamce of it running, so yeah, pressing ALT+F4 would only close the currently active window...it would be the same thing if, say, you opened a link in firefox in a "new window", that creates a completely seperate second instance of the same program, while a new tab wouldn't...try opening up 50 tabs in a browser, then clicking ALT+F4, they'll all close, then entire program would close, not just one of the tabs, sme with ANY program that uses multiple windows but only one instance...the SINGLE INSTANCE of a program running is the key he
🌐
PassFab
pdnob.com › windows-shortcuts › close-window-shortcut.html
10 close window shortcut you should know
2 weeks ago - Below are some of the best keyboard shortcut to close window: The Ctrl + W keyboard shortcut does not close the program; it just closes the file you are currently working on. If you want to keep the desktop software open yet quickly delete all ...
Discussions

Shortcut key to close window
I’d like to be able to set a shortcut key to close the current email window. I spend most of my work day in a web browser, opening and closing tabs. For all the browsers I use, Ctrl-W will close the current tab. When I am in eM Client, I often open up emails, read them, and then want to close ... More on forum.emclient.com
🌐 forum.emclient.com
0
0
January 7, 2023
Is there a keyboard shortcut to reliably closes the active window?
Alt+F4 does this by default. It's configurable of course. It might not be 100% reliable on windows that are frozen (just like the titlebar button) More on reddit.com
🌐 r/kde
9
5
February 10, 2022
how can i close a window using the keyboard? I'v tried ctrl w. how can i maximize a page?
Another method: Make sure the window ... press ALT and the SPACE BAR. The selected window's "system menu" will open. From there, you can use the up/down arrows on your keyboard to select/highlight minimize, maximize or close.... More on learn.microsoft.com
🌐 learn.microsoft.com
1
2
Shortcut key for closing windows? (not closing programs)
Thank you for posting in r/Windows . You have selected the Help post flair, which is to request assistance with the Windows 10 OS and its related systems. This is not a generic tech support subreddit, so your post may be removed if your issue is not related to Windows, even if your computer has Windows installed. You may want to also post this on r/TechSupport for more exposure. If you have not already, be sure to include as much information about your issue that you can, including any error messages, error codes, what steps it takes to create the issue, and what you have done to troubleshoot. Also, include as much information about your computer as possible, including the specs of your hardware, and/or the full make and model of your computer. It is also important to know what your full Windows version is, you can view that on Windows 10 by going to the Settings app -> System -> About, and then it will be listed as the OS Build, for example 19042.421 I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/windows
8
2
April 20, 2021
Top answer
1 of 16
16

Depending upon the application and the layout of the menu in the application you may be able to press ALT + F followed by the X key. ALT + F opens the file menu and then X will exit the application. If this does not work look for a quit or exit button on the menu bar and press the corresponding underlined key. This should do the trick for you.

2 of 16
39

Yes, there is. It's Alt+F4.

This is the key combination to end a program. The only reason it doesn't work as advertised is ignorant programmers who refuse to follow Microsoft design guidelines.

This problem would persist with any other hotkey as well. You could only possibly create a custom solution with AutoHotKey (or similar tools) that kills the process. But this would most likely make you lose a lot of work. As that is quite the brute force method to exit a process.


I want to know more!

OK, to my understanding, there are several ways a Windows application can be terminated.

  1. Posting a WM_CLOSE window message to the main application window.
  2. Destroying the main application window.
  3. Terminating the process.

The first way is the clean way. The way you're intended to close an application. This is the same thing that Alt+F4 works. Pressing Alt+F4 will just send the WM_CLOSE message to the application window.

Now, let's look at all 3 ways in reverse order.

Terminating a process

In Windows, an application lives in a process. Inside that process, the application may create a window. The window is what you will see on your desktop and what you will interact with.

So, if the process is the root of an application, if you terminate it, everything else will go away as well. So this would be great to fully end an application. But this will kill the application so abruptly, that it will have no chance to save any critical data to disk.

So this would not be recommended!

Destroying the main application window

As we just learned, the main application window is just part of the process. So if we just destroy that window, we'll still have the process stinking up the place :(

And that would be even harder to get rid off than the application would have been.

This is most likely the nastiest approach to trying to end an application. Stay far away!

Posting a WM_CLOSE message

Windows is a message-based operating system. Meaning, components talk to each other by sending each other little messages.

One of these messages is the WM_CLOSE message.
If an application receives this message, it is agreed upon, that this application should seize all action and then life.

But every programmer can decide on his or her own how to handle the message.

As the documentation told us earlier, the default behavior would be to call DestroyWindow and, thus perform our application exit approach #2.
With the little difference that, this time, it's intentional and the program has every chance to save critical data.

Conclusion

So, as you can see, we're pretty much at the mercy of every programmer here. Or we take the risk of losing data (you don't want to take that risk!).

🌐
eM Client
forum.emclient.com › frequently asked questions
Shortcut key to close window - Frequently Asked Questions - eM Client
January 7, 2023 - I’d like to be able to set a shortcut key to close the current email window. I spend most of my work day in a web browser, opening and closing tabs. For all the browsers I use, Ctrl-W will close the current tab. When I…
🌐
Wikihow
wikihow.com › computers and electronics › basic computer skills › how to close windows on pc, mac, android, and iphone
How to Close Windows on PC, Mac, Android, and iPhone
August 22, 2025 - Press ⌘ Cmd+W to close the active window. This keyboard shortcut works in the same way as clicking the red circle at the top-left corner.[3] X Research source · If you're using an app with tabs, such as a web browser, this shortcut will close ...
🌐
Microsoft Support
support.microsoft.com › en-us › windows › keyboard-shortcuts-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec
Keyboard shortcuts in Windows - Microsoft Support
This article lists the default Windows keyboard shortcuts. ... Use the following shortcuts with the Copilot key. Tip: To customize what happens when you press the Copilot key · , go to Settings > Personalization > Text input > Customize Copilot key on keyboard. Use the following list of shortcuts to edit text more quickly and efficiently. Use the following keyboard shortcuts to efficiently open, close, navigate, and do other tasks across the Windows desktop environment.
🌐
TeamDynamix
solutions.teamdynamix.com › TDClient › 1965 › Portal › KB › ArticleDet
Closing Popup Windows Using the Keyboard
As such, different options are available depending on which operating system and browser you are using: In Edge, Firefox or Chrome on Windows, press Ctrl + W. In Windows, press Alt + F4.
Find elsewhere
🌐
JustAnswer
justanswer.com › microsoft-office › 97gw0-windows-10-is-keyboard-shortcut-close.html
How to Close a Window in Windows 10: Keyboard Shortcuts and Tips
... Users often confuse shortcuts or find ALT+F4 unresponsive due to focus or app-specific behavior. To close a window in Windows 10, use the ALT+F4 shortcut while the window is active.
🌐
Quora
quora.com › What-is-the-shortcut-key-to-close-a-window-on-Windows
What is the shortcut key to close a window on Windows? - Quora
On pop up windows, click on text box in front of “Shortcut key:” or press “ALT +k” key combination on keyboard. Now, press any letter on the keyboard. This letter along with “CTRL + ALT” will become your shortcut key for that application.
🌐
Reddit
reddit.com › r/kde › is there a keyboard shortcut to reliably closes the active window?
r/kde on Reddit: Is there a keyboard shortcut to reliably closes the active window?
February 10, 2022 -

Essentially is there a way to configure a keyboard shortcut that is equivalent to clicking the "X" button in the titlebar of the currently active window?

I understand there's a semantic difference between closing a window or quitting an application, but in practice that's rarely applied consistently and it becomes a guessing game if it's CTRL+Q, CTRL+W, ESC … or nothing else at all.

🌐
Eileen's Lounge
eileenslounge.com › viewtopic.php
close active window - Eileen's Lounge
Ctrl+W works to close the active document without closing Word in Word for Windows (all versions since Word 97). When you are in the Customize Keyboard dialog, what is shown for the Ctrl+W command?
🌐
Lifewire
lifewire.com › close-open-windows-using-shortcut-keys-3506953
The Fastest Way to Close Unnecessary Windows on Your Desktop
November 13, 2020 - Ctrl+W works in most browsers too, so you can close the current tab you're looking at without taking your hands off the keyboard. If you use Ctrl+W when only one browser tab is open, then the program window will close.
🌐
Njuhsd
njuhsd.com › documents › Our District › District Departments › computer 101 › Windows keyboard shortcuts.pdf pdf
Windows keyboard shortcuts overview
Use shortcut keys as an alternative ... in Windows. You can open, close, and navigate the Start menu, desktop, menus, dialog boxes, and Web pages using keyboard shortcuts. Keyboard shortcuts may also make it easier for you to ... Click a heading, or press TAB to highlight a heading, and then press ENTER. ... Delete selected item permanently without placing the ...
🌐
Eleven Forum
elevenforum.com › windows support forums › tutorials
Close Window in Windows 11 | Windows 11 Forum
September 9, 2025 - ... Option Ten: Press and hold ... when you hover your mouse on it or use your keyboard (Tab / Shift+Tab / arrow keys left-right-up-down / Home / End / PgUp / PgDown ) to navigate to the thumbnail before pressing the Del key ...
🌐
Reddit
reddit.com › r/windows › shortcut key for closing windows? (not closing programs)
r/windows on Reddit: Shortcut key for closing windows? (not closing programs)
April 20, 2021 -

Is there a shortcut key like ctrl + w on a mac for windows? And no, I'm not talking about alt + f4 that closes the whole program, just one that closes the selected window. I know there is ctrl + w which works for tabs in chrome but it doesn't seem to work for anything else.

Ideas?

Top answer
1 of 5
1
Thank you for posting in r/Windows . You have selected the Help post flair, which is to request assistance with the Windows 10 OS and its related systems. This is not a generic tech support subreddit, so your post may be removed if your issue is not related to Windows, even if your computer has Windows installed. You may want to also post this on r/TechSupport for more exposure. If you have not already, be sure to include as much information about your issue that you can, including any error messages, error codes, what steps it takes to create the issue, and what you have done to troubleshoot. Also, include as much information about your computer as possible, including the specs of your hardware, and/or the full make and model of your computer. It is also important to know what your full Windows version is, you can view that on Windows 10 by going to the Settings app -> System -> About, and then it will be listed as the OS Build, for example 19042.421 I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2 of 5
1
Edit: Sorry, for some reason I thought you were after minimizing windows and not actually closing. It just feels like ctrl+w is the standard there for most programs? Anyway, letting these stay below anyway. Win+Arrow Down minimizes the current window (Win+Arrow Up maximizes it, also pretty sweet to use Win+Arrow Right/Left to make the window full height and 50% of the screen width) Alt+Esc moves the current window to the back of all open windows Win+M minimizes everything (shows you the desktop) Win+D Display or hide the desktop You can read more here
🌐
Oracle
docs.oracle.com › cd › E19504-01 › 802-5817 › 6i9i42q74 › index.html
Opening and Closing Windows
Press Alt+Tab to move the highlight to the window you want to close. Press Alt+F4. Press Alt+Tab to move the highlight to the window or icon you want to select. When a window or icon is selected, its border changes color to show that it is active and will receive input from the mouse or keyboard.