To press a button in a dialog using a keyboard shortcut, press Command, followed by the first letter of the action you wish to trigger. The exception to this rule is if the action you wish to activate will delete a file or changes thereto, in which case the shortcut is Command-delete.

To force-close a window, you'd need to automate the correct series of key presses using AppleScript or something similar. The first key combination would likely be Command-W (though not even this is entirely universal). However, the dialog shortcuts vary by application—older versions of Microsoft Word don't comply with the Command-delete behavior (they use Command-D), while Automator's save sheets can often only be closed through mouse input. You would have to tailor this behavior to the specific applications in which you're interested. Such an AppleScript might look something like this (though be warned, triggering Command-delete without knowing the context is an easy way to accidentally delete files and large swathes of text):

tell application "System Events"
    keystroke "w" using {command down} -- Command-W
    delay 0.5 -- Wait for the dialog to appear
    key code 51 using {command down} -- Command-delete
end tell

To tie an AppleScript to a keyboard shortcut:

  • Open Automator (Applications > Utilities > Automator) and create a new Service (optionally, configure it just to run in the applications you want).
  • Add a "Run AppleScript" block in which you write your AppleScript.
  • Open System Preferences > Keyboard > Shortcuts.
  • Create a new shortcut, where the "Menu Title" is the title you gave your Service (again, you can tie this shortcut just to the applications to which your Service applies). The keyboard shortcut you enter here is the one you can use to trigger your "force close" behavior.

You could create multiple services, each one with the same keyboard shortcut but in different applications, corresponding to the unique behavior of each.

Answer from aaplmath on Stack Exchange
🌐
Apple Support
support.apple.com › en-us › 102586
How to force an app to quit on Mac - Apple Support
Learn how to close an app on iPhone. To force an app to quit because it isn’t responding: Press these three keys together: Option (or Alt), Command, and Esc. (If your Mac has a Touch Bar, Esc is on the left side of the Touch Bar).
Top answer
1 of 1
4

To press a button in a dialog using a keyboard shortcut, press Command, followed by the first letter of the action you wish to trigger. The exception to this rule is if the action you wish to activate will delete a file or changes thereto, in which case the shortcut is Command-delete.

To force-close a window, you'd need to automate the correct series of key presses using AppleScript or something similar. The first key combination would likely be Command-W (though not even this is entirely universal). However, the dialog shortcuts vary by application—older versions of Microsoft Word don't comply with the Command-delete behavior (they use Command-D), while Automator's save sheets can often only be closed through mouse input. You would have to tailor this behavior to the specific applications in which you're interested. Such an AppleScript might look something like this (though be warned, triggering Command-delete without knowing the context is an easy way to accidentally delete files and large swathes of text):

tell application "System Events"
    keystroke "w" using {command down} -- Command-W
    delay 0.5 -- Wait for the dialog to appear
    key code 51 using {command down} -- Command-delete
end tell

To tie an AppleScript to a keyboard shortcut:

  • Open Automator (Applications > Utilities > Automator) and create a new Service (optionally, configure it just to run in the applications you want).
  • Add a "Run AppleScript" block in which you write your AppleScript.
  • Open System Preferences > Keyboard > Shortcuts.
  • Create a new shortcut, where the "Menu Title" is the title you gave your Service (again, you can tie this shortcut just to the applications to which your Service applies). The keyboard shortcut you enter here is the one you can use to trigger your "force close" behavior.

You could create multiple services, each one with the same keyboard shortcut but in different applications, corresponding to the unique behavior of each.

Discussions

Window won’t Close - Apple Community
How can I stop it? window keeps popping up on Mac screen [Re-titled by Moderator] 1181 3 · This pop up named ‘wappo’ just don’t go since I updated My Mac. Please help. This pop up named ‘wappo’ just don’t go since I updated My Mac. Please help. I have deleted all unnecessary applications & cache that ... More on discussions.apple.com
🌐 discussions.apple.com
January 8, 2024
macos - How to close a window without the application quitting? - Ask Different
The OS X menu allows exit, minimize and maximize: I know the following shortcuts: Exit: command+Q Minimize: command + M Maximize: ? When I use command+Q to exit the behavior differs from More on apple.stackexchange.com
🌐 apple.stackexchange.com
Minimizing and closing windows in MacOS - Apple Community
Hi, I own a MacBook Air 2019 for ... used Windows, such as apps not closing when I press the red cross on the top-left corner, and the fact that I can't minimize an open app by clicking its dock icon. Are there any workarounds for these problems? ... The red "X" on macOS only closes that particular ... More on discussions.apple.com
🌐 discussions.apple.com
September 18, 2019
Can someone help please! This window is stuck open like this (I think it was ever since I opened Keynote) but it won’t leave, close or even appear in the activity monitor. How to get rid?
Go to the top left Apple click and chose forced closed for that app. More on reddit.com
🌐 r/mac
14
1
November 8, 2025
🌐
Parallels
parallels.com › blogs › force-quit-on-a-mac
How to Force Quit Unresponsive Apps on Your Mac | Parallels
Nada. While unresponsive apps can be frustrating, the Mac “force quit” feature resolves that issue. Like using Ctrl>Alt>Delete to access the task manager on Windows devices, force quit allows Mac users to force an unresponsive app to close ...
🌐
Quora
quora.com › How-do-I-force-quit-an-unresponsive-application-on-my-MacBook
How to force quit an unresponsive application on my MacBook - Quora
The force quit Mac shortcut will instantly close the running app; you only have to follow the steps below: Press the Command + Option + Escape key at the same time and the Force Quit window will appear on the screen.
🌐
Apple Community
discussions.apple.com › thread › 255399292
Window won’t Close - Apple Community
January 8, 2024 - Log out, sleep, wake, restart or shut down your Mac ... Thanks, I’ve tried to force shutdown but still appears when rebooted. Stupid thing has been around for weeks now. Only when laptop is connected to monitor. ... This thread has been closed by the system or the community team.
🌐
Quora
quora.com › How-do-you-close-an-app-on-a-Mac-if-the-Force-Quit-feature-is-not-working
How to close an app on a Mac if the Force Quit feature is not working - Quora
The force quit Mac shortcut will instantly close the running app; you only have to follow the steps below: Press the Command + Option + Escape key at the same time and the Force Quit window will appear on the screen.
🌐
MacPaw
macpaw.com › how to › tips & tricks › guides
How to force quit on Mac? Here are 6 different ways
November 26, 2025 - Type the following command: killall [application name] (for example, if Spotify isn’t responding, type killall Spotify in the window that opened). Press Return. Your application will be shut down immediately.
🌐
Intego
intego.com › home › how to force quit apps on a mac when they freeze or hang
How to Force Quit apps on a Mac when they freeze or hang - The Mac Security Blog
December 1, 2023 - Unresponsive (frozen or hanging) apps display in red, with the words Not Responding after their name. Click the hung app’s name to select it, then click the x icon in the toolbar. A dialog asks if you want to force quit the app; click Force Quit to exit the app. The final method for force quitting an app on macOS is to use the Terminal, the application that lets you enter text commands.
Find elsewhere
🌐
Lifehacker
lifehacker.com › home
How to Close a Program That Is Not Responding | Lifehacker
June 9, 2025 - ... Press Ctrl+Shift+Esc to directly open the Task Manager. In the Applications tab, click on the program that's not responding (the status will say "Not Responding") and then click the End Task button.
Top answer
1 of 7
9

You always have the option to hide the active program. When the application in question is active (in front of all others) there are 2 options:

  1. option +click on the Desktop
  2. command +h

The first option always works or at least I can't think of any exceptions this minute. The second is supported by most applications.

In either case:

  1. Your session will be preserved.
  2. Neither will cause these windows to be displayed in the Dock where the minimized programs are located.
  3. You'll need both hands.

So, if you're scanning eBay at work, you'll likely only look suspicious. But, if you lean into it and use + (command+tab) PLUS +h in succession, you might actually look like you're doing work.

But, in the event you're asked to bring your browser back to the forefront you'll be busted. It will display exactly what you were looking at when you hid it.

You can imagine how I know this :-)

2 of 7
22

Typically, an application will offer a way to both close the UI and quit the application. These are usually standardized to command ⌘+W to close the UI/window and command ⌘+Q to quit the application.

Some applications will still quit entirely when you use command ⌘+W, such as Preview. You can usually rely on this shortcut to close the window without quitting, however.

I should also point out that the red button in the top left does not "quit" the application as you mentioned in the question body. It will close the window (just like command ⌘+W).

Edit: In recent versions of macOS, with the advent of tabs, the behavior is slightly different:

Keyboard Effect
command ⌘+W Closes the Tab
command ⌘+shift+W Closes the Window
🌐
Quora
quora.com › How-can-you-turn-off-an-unresponsive-app-on-a-Mac
How to turn off an unresponsive app on a Mac - Quora
If the app still doesn't quit, then follow these steps: Simultaneously press these three keys: Option, Command, and Esc (Escape). Select the app in the Force Quit window, and then click Force Quit.
🌐
iBoysoft
iboysoft.com › home › how to tips › force quit not working on mac, how to close frozen apps 2024
Force Quit Not Working on Mac, How to Close Frozen Apps 2024
August 4, 2022 - Under the CPU tab, select the app that won't quit. You can also use the search bar to quickly locate the target program. Click the button at the top. Click Quit on the pop-up window to end the app. If it still can't be closed, click Force Quit. If you force quit still not working in your Mac's Activity Monitor, you can run command lines to stop the unresponsive app.
🌐
Freshdesk
pleasantonusdca.freshdesk.com › support › solutions › articles › 67000173034-force-quit-on-a-mac-3-easy-ways-to-close-frozen-applications
Force Quit on a Mac: 3 Easy Ways to Close Frozen Applications : Technology & Synergy Help Desk
November 19, 2022 - From the drop-down menu, select “Force Quit…”. You will be directed to the new window named “Force Quit Application” where all the magic happens. Now all you have to do is select the application you want to close and choose “Force Quit.” · If you don’t know which application is stuck, pay attention to the ones that have the note “Not Responding.” This usually appears next to frozen applications. To do the same thing but faster, use Mac shortcut keys to close frozen applications.
🌐
Apple Community
discussions.apple.com › thread › 250640879
Minimizing and closing windows in MacOS - Apple Community
September 18, 2019 - Mac OS Windows Does anyone know ... on macOS only closes that particular window, but leaves the app open. You either need to click "File --> Quit" or use the hot keys Command + Q....
🌐
Reddit
reddit.com › r/mac › why doesn't anything ever close?
r/mac on Reddit: Why doesn't anything ever close?
August 9, 2022 -

I am so tired of closing apps and windows just to find that they're just minimized and still have that little dot on the bar indicating that they are running. Theres a red close button and a yellow minimize button-- If I hit the close button, its because I want it gone, I'm done with it. I DONT UNDERSTAND why it functions this way.

🌐
Trend Micro Cleaner One
cleanerone.trendmicro.com › home › mac › how to force quit a frozen app on mac: quick guide
How to Force Quit a Frozen App on Mac: Quick Guide - Apple & Microsoft News,Tutorials,Security Tips|Cleaner One Blog
April 30, 2025 - When an app stops responding, clicking the red “close” button in the corner might not work. Force quitting is a quick way to shut down the app and regain control of your Mac without restarting the entire system.