Fastest shortcut keys to close windows in Windows 11 and 10

Shortcut Keys to Close Windows 11 & 10 Easy Guide (2027)

A frozen window and a dead mouse make a bad combination, but the keyboard can usually get you out.

Quick Answer

The main shortcut key to close a window in Windows 11 and Windows 10 is Alt + F4. To close a browser tab or a supported document without closing the entire application, use Ctrl + W. If a program is frozen, press Ctrl + Shift + Esc to open Task Manager and end the unresponsive task if necessary.

Which Shortcut Do You Need?

SituationWhat is happeningBest shortcut or solution
Close the active windowYou want to exit the program in front of youAlt + F4
Close a browser tabYou want to keep the browser openCtrl + W
Close a documentYou want to keep the app openCtrl + W or Ctrl + F4 (depends on the app)
Switch to another window firstThe wrong window has focusAlt + Tab
Close a frozen applicationThe window says Not RespondingCtrl + Shift + Esc, then End task
Shut down WindowsYou want to power off, not close an appWindows key + X, then U, then U
Alt + F4 seems dead (laptop)F4 may be set to a hardware functionAlt + Fn + F4
Mouse not workingNo pointer controlAlt + Space, then C

Alt + F4: The Main Shortcut to Close an Active Window

Alt + F4 closes the window that currently has focus. In most programs, that means the entire application. In Google Chrome, Microsoft Edge, or Mozilla Firefox, it closes the whole browser window, including every tab inside it.

Alt + F4 does not work on a window you cannot see. It acts on whatever has keyboard focus, so a quick glance at the title bar before pressing it prevents most accidents. Many apps will ask whether you want to save changes first, which is a good reason to prefer this shortcut over force closing.

On Windows 11 and Windows 10, the behavior is the same. If the desktop itself has focus (no program window is active), Alt + F4 opens the Shut Down Windows dialog instead. That surprises many people, and it is covered in the mistakes section below.

Ctrl + W: Close a Tab or Document

Ctrl + W closes the current tab or document in many applications, not the whole program. In Chrome, Edge, and Firefox, it closes the active tab. In Microsoft Word and Microsoft Excel, it closes the current document or workbook window while leaving the application running if other files are open.

Behavior depends on the program. In File Explorer on Windows 10, Ctrl + W closes the window. On recent Windows 11 builds that support File Explorer tabs, it closes the active tab instead. When a program does not define Ctrl + W, nothing happens.

Ctrl + F4: Close a Document Inside an Application

Ctrl + F4 closes the active document or tab inside programs that host several child windows. It was designed for the document within a program, while Alt + F4 targets the program itself. In a tabbed browser, Ctrl + F4 also tends to close the current tab, so its effect looks similar to Ctrl + W there.

Support varies. Some modern apps ignore Ctrl + F4 entirely. If it does nothing, try Ctrl + W, or use Alt + F4 if you actually want to exit the program.

Ctrl + F4 is also not the same as Windows key + Ctrl + F4, which closes the current virtual desktop.

Alt + F4 vs Ctrl + W vs Ctrl + F4

ShortcutPrimary actionWhat it closesBest use case
Alt + F4Close the active windowThe app or window with focusExit a program completely
Ctrl + WClose the current contentA tab, document, or window (app dependent)Close one tab or file
Ctrl + F4Close the child windowA document inside a multi document appClose one file, keep the app
Alt + Space, then CClose via the window menuThe active windowKeyboard only, no mouse
Windows key + Ctrl + F4Close the virtual desktopThe current virtual desktopTidy up a desktop you created

How to Close a Window Using Only the Keyboard

If the mouse is unplugged, dead, or the pointer is frozen, follow this sequence:

  1. Press Alt + Tab and hold Alt to cycle until the correct window is highlighted, then release.
  2. Press Alt + F4 to close it.
  3. If Alt + F4 does nothing, press Alt + Space to open the window menu, then press C for Close.
  4. If the window is still stuck, move to the frozen app section below.

The Alt + Space menu is useful because it appears in the upper left corner of most standard windows and works even when the title bar buttons do not respond to the mouse. Some modern store style apps show a different menu, so the C key may not always match Close in every app.

How to Select the Correct Window Before Closing It

The window with focus receives the shortcut, so choosing it first matters.

  • Alt + Tab cycles through open windows. Hold Alt, tap Tab until you reach the right one, then release both.
  • Windows key + Tab opens Task View, where you can pick a window with the arrow keys and Enter.
  • Windows key + D shows the desktop. Use it with care, because pressing Alt + F4 right afterward targets the desktop and opens the shutdown dialog.
Using Alt Tab keyboard shortcut to switch and select active window in Windows 11

If you also manage a messy startup list of apps, the Windows 11 debloater guide explains how to cut down background programs that sometimes cause windows to hang.

What to Do When Alt + F4 Does Not Work

Work through these causes in order, from most common to least:

  1. The wrong window has focus. Click or Alt + Tab to the target window and try again.
  2. A dialog box is open. Close the dialog first, since the program may be waiting on an answer.
  3. The program is not responding. Windows may be unable to process the close request. Windows may show a Close the program prompt after a short wait.
  4. The function row requires Fn. See the laptop section below.
  5. The app blocks it. Some full screen games and kiosk programs intercept the shortcut.
  6. A keyboard problem exists. Test Alt and F4 in another program, or use an external keyboard.

Laptop Fn Key Behavior and Alt + F4

On many laptops, the function row keys have a secondary job, such as volume, brightness, or airplane mode. Depending on how the keyboard is configured, the F4 key may need to be pressed together with Fn to act as a normal F4. In that case, the combination becomes Alt + Fn + F4.

This varies by manufacturer and model. Some laptops treat the top row as standard function keys by default, and others treat it as media keys. Many keyboards include an Fn Lock toggle (often Fn + Esc, though the key differs) that flips the behavior. Check the icons on your keyboard or the BIOS setting for the function key mode. Fn is not required on every laptop.

Why Is Alt + F4 Not Working on My Laptop?

Some laptop keyboards assign secondary functions to the F1–F12 keys. If Alt + F4 does not close the active window, try these steps:

  1. Select the window you want to close.
  2. Press Alt + Fn + F4 if your laptop requires the Fn key.
  3. Check whether the window closes.
  4. If the shortcut still fails, test it in another application.
  5. If the application is frozen, press Ctrl + Shift + Esc to open Task Manager.

The Fn key is not required on every laptop. Its behavior depends on the keyboard and function-key settings.

Windows Keyboard Shortcuts to Close Windows

Keyboard ShortcutWhat It DoesWhen to Use It
Alt + F4Closes the active window or applicationClosing a program
Ctrl + WCloses the active tab or supported documentClosing a browser tab
Ctrl + F4Closes the active document in supported applicationsClosing a document
Alt + Tab, then Alt + F4Selects and closes a chosen windowClosing another open app
Ctrl + Shift + EscOpens Task ManagerHandling an unresponsive application
Windows + D, then Alt + F4Opens the shutdown dialog from the desktopShutting down the PC

Note: Shortcuts may behave differently depending on the application. Save your work before closing documents or ending unresponsive tasks.

How to Force Close a Frozen Windows Application

Use this only after a normal close fails. Force closing discards any unsaved work in that program. Wait about 30 seconds first, because a busy app may recover on its own.

How to Close a Window With Task Manager

  1. Press Ctrl + Shift + Esc to open Task Manager directly.
  2. If it opens in the compact view, press Tab to reach and expand More details, or press Alt + D on Windows 10.
  3. Use the arrow keys to select the frozen application in the Processes list. Apps marked as Not Responding are good candidates.
  4. Press Tab until the End task button is highlighted, then press Enter. The Delete key often ends the selected task too.
Ending frozen app process in Windows 11 Task Manager using End task button

Windows 11 redesigned Task Manager with a left navigation menu, but Ctrl + Shift + Esc and the End task action work the same way. If Task Manager does not open, use Ctrl + Alt + Delete and choose Task Manager from the screen that appears.

How to Close an Application With Taskkill

Taskkill is a command line tool for ending processes. Open Command Prompt, PowerShell, or Windows Terminal, then type:

What each part does:

  • taskkill is the command that ends a process.
  • /IM notepad.exe names the process by its image (file) name.
  • /F forces termination. Without it, taskkill politely asks the program to close.

Run tasklist first to find the exact process name. Taskkill with /F stops the program immediately, so unsaved data is lost.

When the Whole Screen Appears Frozen

Press Ctrl + Alt + Delete. If the security screen appears, Windows itself is responding, so the problem is a single app and Task Manager can fix it. If nothing appears after a minute, the system may be hung. Holding the power button is a last resort for a computer that no longer responds, not a normal way to shut down.

Sometimes a freeze that looks like a window problem is really a network or driver issue. If the freeze happens only while online, the how to fix WiFi walkthrough covers common connection causes.

Closing a Window vs Shutting Down Windows

These actions are often confused, and each has its own route:

  • Close a window or application: Alt + F4 with a program focused.
  • Close a browser tab: Ctrl + W.
  • Close a document: Ctrl + W or Ctrl + F4, depending on the app.
  • Sign out: end your session but leave Windows running.
  • Restart: shut down and start again.
  • Shut down: power off the PC.

How to Shut Down Windows Using Keyboard Shortcuts

Windows key + X, then U, then U shuts down Windows 10 and Windows 11. The first U opens the Shut down or sign out submenu, and the second U selects Shut down. In the same submenu, R restarts and I signs out.

Other routes:

  • Alt + F4 on the desktop. Press Windows key + D, then Alt + F4, then Enter. Shut down is usually the default choice.
  • Ctrl + Alt + Delete. Use Tab to reach the power icon at the bottom right, press Enter, and pick an option with the arrow keys.

For a PC with no visible display, the Windows key + X sequence works blind, because it does not depend on seeing the screen. Allow a few seconds between presses.

On Windows 7, Windows key + X opens Mobility Center, not the power menu. Use Alt + F4 on the desktop or Ctrl + Alt + Delete instead.

Windows key X power user popup menu showing shut down options in Windows 11

If you want to skip the login screen after startup, the Windows 11 automatic login guide shows how to configure it.

Windows 11 vs Windows 10 Keyboard Shortcuts

For closing windows, the two versions behave almost identically.

  • Alt + F4, Alt + Tab, Alt + Space, and Ctrl + Shift + Esc work the same.
  • Ctrl + W in File Explorer may close a tab on Windows 11 builds that include Explorer tabs, but closes the window on Windows 10.
  • Task Manager has a new layout on Windows 11, with Alt + E style End task shortcuts less visible. Tab and Enter remain reliable.
  • Windows key + X opens the Power User menu in both.

Microsoft maintains the official list on its keyboard shortcuts in Windows page, which is worth checking for newer additions.

Common Keyboard Shortcut Mistakes

  • Pressing Alt + F4 without checking focus. You may close the wrong program. For example, closing Word while a long document is unsaved prompts a save dialog, but a game or terminal may simply exit.
  • Confusing Ctrl + W with Alt + F4. Ctrl + W closes one tab. Alt + F4 closes the whole browser window and every tab in it.
  • Pressing Alt + F4 on the desktop. This opens the shutdown dialog. Press Esc to cancel.
  • Assuming Fn is always required. Some laptops need it. Many do not.
  • Force closing too early. Waiting briefly or using a normal close avoids lost work.
  • Assuming every program obeys the same shortcut. Always test in the app you use.

Other Shortcuts That Cause Confusion

Windows key + K opens the Cast panel, which helps when you want to screen mirror without WiFi to a compatible display. It is unrelated to closing windows, but people often mix up K shortcuts.

If a shortcut seems to do something strange, check for applications that register their own hotkeys. That includes graphics drivers, remote tools, and productivity apps.

FAQ (Shortcut Keys to Close Windows)

How to close PC by shortcut key?

Press Windows key + X, then U, then U to shut down Windows 10 or 11. Alternatively, press Windows key + D to show the desktop, then Alt + F4, then Enter. Alt + F4 on a program window only closes that program.

What is Ctrl+W?

Ctrl + W closes the current tab or document in many programs, including Chrome, Edge, Firefox, Word, and Excel. It does not exit the whole application unless that was the last open item. Behavior depends on the app, and some programs do not respond to it at all.

What does Ctrl+Alt+K do?

Windows has no built in action for Ctrl + Alt + K. Software can assign it, and the Amazon Kindle desktop app has historically used it as a program shortcut. If it does something unexpected, check the app that has focus or a program shortcut key set in Properties.

Why is the Ctrl+Alt+Arrow not working?

Ctrl + Alt + Arrow is not a Windows feature. It rotated the screen through older Intel graphics driver hotkeys, which Dell says were removed from the Intel Graphics Control Panel starting with 6th generation Intel graphics. Rotate the display through Settings, System, Display, Display orientation instead.

What is the fastest shortcut to close a window in Windows 11?

Alt + F4 is the fastest. It closes the active window or application in a single press. If you only want to close a browser tab or document, use Ctrl + W. Confirm focus first, since Alt + F4 can close an entire browser window.

How do I close a frozen application without a mouse?

Press Ctrl + Shift + Esc, use the arrow keys to select the frozen app, then Tab to End task and press Enter. This discards unsaved work in that app, so try Alt + F4 first and wait briefly before force closing.

What is the difference between Alt + F4 and Ctrl + W?

Alt + F4 closes the whole active window or program. Ctrl + W closes only the current tab or document in programs that support it. In a browser, Alt + F4 closes every tab at once, while Ctrl + W closes one.

How do I shut down Windows with the keyboard?

Use Windows key + X, then U, then U. You can also press Windows key + D, then Alt + F4, then Enter. Ctrl + Alt + Delete with the power icon is another option. Closing a window with Alt + F4 does not shut down the PC.

Why does Alt + F4 not work on my laptop?

The F4 key may be set to a hardware function on your laptop. Try Alt + Fn + F4, or toggle Fn Lock if your keyboard has it. A frozen program or a dialog box waiting for input can also block the shortcut.

Can I close File Explorer with a keyboard shortcut?

Yes. Press Alt + F4 with a File Explorer window focused to close it. Ctrl + W also works in File Explorer, closing the window on Windows 10 and the active tab on Windows 11 builds with Explorer tabs.

What is the shortcut key to close a window in Windows 11?

Press Alt + F4 while the window is active. Windows sends a close request to that application.

How do I close a window without a mouse?

Press Alt + Tab to select the window, release the keys, and press Alt + F4.

How do I close a program that is not responding?

Press Ctrl + Shift + Esc to open Task Manager, select the unresponsive application, and choose End task. Unsaved changes may be lost.

How do I close a program that is not responding?

Press Ctrl + Shift + Esc to open Task Manager, select the unresponsive application, and choose End task. Unsaved changes may be lost.

Conclusion

Alt + F4 is the most useful of the shortcut keys to close windows, as long as you check which window has focus first. Use Ctrl + W when you only want to close a tab or document. Remember that closing a window is not the same as shutting down Windows, which uses Windows key + X, then U, then U.

For a frozen program, follow the safest order: wait briefly, try Alt + F4, try Alt + Space then C, and only then use Task Manager. Save taskkill for stubborn cases. If you ever need to configure a printer after a restart, the guide to connecting a printer to WiFi and the steps to access router settings can help, and the hotspot data tracker is useful if you are working on a mobile connection.

If you are looking to streamline your daily workflow or troubleshoot system settings on Windows 11, explore our detailed technical tutorials below:

Similar Posts

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *