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
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!).

Discussions

Is there a Windows 10 shortcut to force quit apps? (for programs that prevent Alt+F4)
With the HotkeyP, you can create any shortcut to kill the active program/window, use the command "Terminate process". HotkeyP - keyboard/mouse/gamepad mapper (AutoHotkey alternative - but much easier to use, lightweight, many features, e.g. macros, hide window, opacity, change wallpaper, magnifier, volume, mute, disable key - like CapsLock...) More on reddit.com
🌐 r/windows
7
5
November 4, 2019
Is there a way to force close an app in windows
🌐 r/techsupport
28
2
March 26, 2024
Easy Keyboard Shortcut to actually close a program?
Alt+F4 works for me. More on reddit.com
🌐 r/windows
13
2
November 12, 2020
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
🌐
HelloTech
hellotech.com › home › how to force quit an app on a windows 10 pc
How To Force Quit an App on a Windows 10 PC : HelloTech How
January 25, 2024 - Click End task to close the program. Click the Windows key + R on your keyboard at the same time. The Windows key is the one with the Windows logo to the left of your space bar.
🌐
Verificient
verificient.freshdesk.com › support › solutions › articles › 1000325125-ways-to-force-quit-apps-or-programs-on-a-windows-pc
Ways to force quit apps or programs on a Windows PC : Support
To quickly force quit on Windows, use the keyboard shortcut Alt + F4. You can also force quit on Windows by using Task Manager or Command Prompt. If these methods don't work, try restarting your computer. How to force quit on Windows usin...
🌐
Njuhsd
njuhsd.com › documents › Our District › District Departments › computer 101 › Windows keyboard shortcuts.pdf pdf
Windows keyboard shortcuts overview
Close the active item, or quit the active program. ... Displays the properties of the selected object. ... Opens the shortcut menu for the active window.
🌐
Ascendant USA
ascendantusa.com › 2024 › 12 › 23 › force-quit-apps-on-windows
How to Force Quit Apps on Windows | Ascendant
December 30, 2025 - For those who use Windows, there are two main keyboard shortcuts that are essential. Alt + F4 and Strg + F4 respectively. Knowing these will equip you with the ability to quickly close frozen apps.
🌐
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.
Find elsewhere
🌐
PassFab
pdnob.com › windows-shortcuts › close-window-shortcut.html
10 close window shortcut you should know
2 weeks ago - To display the right-click context menu at the top of the program window you're trying to close, press and hold the Alt key while simultaneously pressing the Spacebar. You can perform a variety of functions on your computer's keyboard by pressing ...
🌐
Digital Citizen
digitalcitizen.life › close-apps-windows-10
8 ways to close apps in Windows 10 like a Pro | Digital Citizen
October 5, 2025 - Simultaneously pressing the Alt and F4 keys closes an app A less-known way of closing apps with the keyboard involves first using the shortcut Alt + Spacebar. Press the Alt and Space keys simultaneously This opens an app's title bar menu.
🌐
CNET
cnet.com › tech › computing › the fastest way to close all running programs in windows
The fastest way to close all running programs in Windows - CNET
October 27, 2012 - Close all open programs A little-known set of keystrokes will shut down all active programs at once in no time. Press Ctrl-Alt-Delete and then Alt-T to open Task Manager's Applications tab. Press the down arrow, and then Shift-down arrow to ...
🌐
Itarian
itarian.com › blog › how-to-force-close-on-windows
How to Force Close on Windows Quickly
The fastest and most familiar method to force quit Windows applications is through the Task Manager. Press Ctrl + Shift + Esc to open Task Manager. Click the Processes tab. Locate the unresponsive program. Right-click it and select End Task. This method is ideal for beginners and experienced users alike. It works for both background processes and full applications. If Task Manager is slow to open or unresponsive, try using a force close keyboard shortcut:
🌐
Reddit
reddit.com › r/windows › is there a windows 10 shortcut to force quit apps? (for programs that prevent alt+f4)
r/windows on Reddit: Is there a Windows 10 shortcut to force quit apps? (for programs that prevent Alt+F4)
November 4, 2019 - With the HotkeyP, you can create any shortcut to kill the active program/window, use the command "Terminate process". HotkeyP - keyboard/mouse/gamepad mapper (AutoHotkey alternative - but much easier to use, lightweight, many features, e.g.
🌐
Business Insider
businessinsider.com › business insider › 3 ways to force quit apps or programs on a windows pc
3 ways to force quit apps or programs on a Windows PC
December 7, 2022 - To quickly force quit on Windows, use the keyboard shortcut Alt + F4. You can also force quit on Windows by using Task Manager or Command Prompt. If these methods don't work, try restarting your computer.
🌐
MakeUseOf
makeuseof.com › home › windows › 8 different ways to close apps and programs on windows
8 Different Ways to Close Apps and Programs on Windows
December 25, 2022 - The Task Switcher is a useful feature on Windows that lets you switch between open windows. Here's how you can use it to close apps and programs on Windows. Press Ctrl + Alt + Tab together on your keyboard to access Task Switcher on Windows.
🌐
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.
🌐
SlashGear
slashgear.com › 1299855 › how-to-force-quit-programs-windows
How To Force Quit Programs On Windows - SlashGear
May 31, 2023 - If you've grown tired of waiting for a frozen program to fix itself, you can quickly quit the app using a simple keyboard shortcut: Alt + F4. This combination will shut down whichever program is active when you press the keys.
🌐
CCleaner
ccleaner.com › knowledge › 5-ways-to-force-quit-any-frozen-app-on-windows
How to force quit on a Windows PC — CCleaner
Learn how to force quit on a Windows PC whether you're dealing with a frozen program or an unresponsive computer using various methods.
🌐
Quora
quora.com › Is-it-possible-to-change-the-close-current-window-not-close-program-keyboard-shortcut-from-Alt-F4-to-Ctrl-Space-in-Windows-10
Is it possible to change the 'close current window' (not “close program”) keyboard shortcut from Alt+F4 to Ctrl+Space in Windows 10? - Quora
Answer (1 of 2): “Close current window (not close program)” starts out as or . starts out as “Close Program”. So the answer to your question is, “No.” You can’t change something from x to z, if it isn’t x. You can, however, change it from the thing that it is, y, t...
🌐
Revo Uninstaller
revouninstaller.com › home › how to force quit an app on your windows 11 pc
How to force quit an app on your Windows 11 PC - RevoUninstaller
October 1, 2024 - Once you’ve identified the application, type ‘taskkill /f /im insertprogram.exe’ (replace “insertprogram.exe” with the name of the program or its process ID) and press ‘Enter’ to forcefully terminate the application.