The end task shortcut key is Alt + F4 on Windows, which closes the active window or prompts you to save and exit the running app. On a Mac, the equivalent is Command + Option + Esc, which opens the Force Quit dialog. These shortcuts are the fastest way to close a frozen or unresponsive program without reaching for the mouse. The exact behavior depends on whether the app is responding, so the steps below cover both the normal close and the forced termination path, plus what to do when even the shortcut does nothing.

What You'll Need

  • A Windows PC or Mac with a physical keyboard (laptop or desktop).
  • Knowledge of which app window is currently active, since Alt + F4 targets the focused window, not a menu selection.
  • Administrator rights on the PC if you need to end a task for another user or a system-level process.
  • For Mac users, the Force Quit dialog works without any extra software; no Terminal commands are required.

Step-by-Step

  1. Identify the frozen window. Click once on the title bar of the app that is not responding so it becomes the active window. If the app is completely frozen and will not accept a click, proceed to the forced method in step 4.
  2. Press Alt + F4 on Windows. Hold the Alt key and tap F4 once. If the app is responsive, it will close normally. If there is unsaved work, Windows will show a save prompt; choose Save or Don't Save as appropriate.
  3. If the app does not close, wait a few seconds. Windows may show a dialog saying the program is not responding, with options to close it or wait. Choose Close the program to force it to end. This is the same as ending the task, but triggered by the shortcut.
  4. Use Task Manager as the fallback. Press Ctrl + Shift + Esc to open Task Manager directly. If that does not open, press Ctrl + Alt + Delete and choose Task Manager from the security screen. In the Processes tab, find the app, click it once, and choose End task. On Windows 11 the button is labeled End task; on Windows 10 it may say End task as well. Labels can differ slightly by version and region.
  5. On a Mac, press Command + Option + Esc. This opens the Force Quit Applications window. Select the unresponsive app from the list and click Force Quit. Confirm if prompted. This is the Mac equivalent of ending a task and does not require Terminal.
  6. Close the Task Manager or Force Quit window once the app has ended. Reopen the app if you need it again, and save your work more frequently to avoid losing data in future freezes.

Common Mistakes

  • Pressing Alt + F4 with the desktop focused. This opens the Shut Down Windows dialog instead of closing an app. Always click the app window first.
  • Using Ctrl + Alt + Delete as the first step. It works, but Ctrl + Shift + Esc opens Task Manager faster and skips the security screen.
  • Ending a process you do not recognize. Ending system processes or services can crash Windows or lose unsaved work across multiple apps. Only end the specific app that is frozen.
  • Assuming Command + Q force quits on Mac. Command + Q only works if the app is responding. For a frozen app, use Command + Option + Esc.
  • Forgetting to save in other apps. Forcing one app to end does not affect others, but a full system freeze may require a restart, so save work in other windows when you notice instability.

Tips

  • Alt + F4 also works on the desktop to open the shutdown menu, and in some apps it closes the current document rather than the whole program. Check the app's behavior once so you know what to expect.
  • If you frequently need to end tasks, pin Task Manager to the taskbar or create a desktop shortcut to it for one-click access.
  • On Windows, the Details tab in Task Manager shows the process name, which helps you identify the correct entry when the friendly app name is ambiguous.
  • On Mac, the Force Quit window lists only user apps, not background system processes. For those, use Activity Monitor, which is the official Apple tool for viewing and quitting processes.
  • Keyboard shortcuts can be remapped by some apps. If Alt + F4 stops working in a specific program, check that program's settings for shortcut overrides.

Troubleshooting

If Alt + F4 does nothing, the app may be running with elevated privileges or the keyboard focus may be trapped. Try clicking the app's taskbar button first, then press the shortcut again. If Task Manager itself will not open, press Ctrl + Alt + Delete and choose Task Manager from the security screen; if that fails, sign out of Windows and sign back in, which closes all apps and loses unsaved work, so save what you can first.

If the app reappears immediately after ending the task, it may be set to restart automatically or be launched by a startup entry. Check the Startup tab in Task Manager and disable the entry if you do not need it. On Mac, if Force Quit does not respond, restart the Mac using the Apple menu; a forced restart by holding the power button should be a last resort because it can cause data loss.

If the entire system is frozen and no shortcut responds, hold the power button until the PC shuts off, then power it back on. This can corrupt open files, so use it only when nothing else works. After restarting, check for updates to the app and to Windows or macOS, since freezes are often fixed by updates.

Frequently Asked Questions

What is the end task shortcut key on Windows?

Alt + F4 closes the active window and can trigger the not-responding dialog that ends the task. For a direct end task, Ctrl + Shift + Esc opens Task Manager, where you select the app and click End task.

What is the equivalent on a Mac?

Command + Option + Esc opens the Force Quit Applications window. Select the app and click Force Quit. Command + Q only works when the app is responsive.

Does Alt + F4 lose unsaved work?

If the app is responsive, it prompts you to save. If it is frozen and you choose Close the program or End task, unsaved changes in that app are lost.

Can I end a task without a keyboard?

Yes. Right-click the taskbar and choose Task Manager on Windows, or use the Apple menu and Activity Monitor on Mac. The keyboard shortcut is simply faster.

Why does Alt + F4 shut down my PC instead of closing the app?

That happens when the desktop or taskbar has focus rather than an app window. Click the app window first, then press the shortcut.

Is it safe to end tasks regularly?

Ending a single frozen app is safe. Repeatedly ending system processes or services can destabilize the PC, so investigate why apps freeze, such as low memory or outdated software.