How to fix Alt + F4 not working in Windows?

Prefer to fix it yourself? The manual steps follow.

  • 8methods
  • 1 to 20 minutes
  • Easy
Start fixing

Applies to Windows 11 and Windows 10 on laptops and desktops, with built-in, wired, wireless and gaming keyboards

8 methods in this guide
  1. What Alt + F4 does
  2. Causes, most common first
  3. 30-second test
  4. The fixes
  5. 1. Fn key and Fn Lock
  6. 2. Desktop focus for shutdown
  7. 3. Gaming Mode and remapping
  8. 4. End one stuck app
  9. 5. Restart Windows Explorer
  10. 6. Check the shutdown policy
  11. 7. Keyboard and its driver
  12. 8. Clean boot and new account
  13. Still not working
  14. Ways around Alt + F4
  15. Prevent it
  16. FAQ
Question

I recently updated my laptop to Windows 11. Since then, the Alt+F4 shortcut doesn't work when I try to shut down my laptop unless I refresh the desktop first. If anyone knows how to resolve this issue, please let me know.

Alt + F4 closes the active window, and on the empty desktop it opens the box to shut down Windows. When it does nothing, the cause is usually the keyboard, not Windows: on most laptops F4 sends a media action unless you hold Fn. Try Fn + Alt + F4 first.

Short answer

Press Fn + Alt + F4. If that works, your F4 key is in media mode: turn on Fn Lock (Fn + Esc on ThinkPads and many other keyboards) or switch the hotkey setting in the BIOS (Fix 1). For shutdown, press Win + D first so the desktop is active, then Alt + F4 (Fix 2). Gaming keyboards can block the shortcut in Gaming Mode (Fix 3).

At a glance
ErrorNo error message. Alt + F4 does nothing: the window stays open, or the Shut Down Windows box does not appear on the desktop.
Where it appearsIn any app, on the desktop when you want to shut down, and in games. Most reports come from laptops and compact or gaming keyboards.
Main causeThe F4 key sends a media or hotkey action (mute, brightness and similar) instead of F4, so Windows never sees Alt + F4.
Fastest fixHold Fn and press Alt + F4. To make plain F4 the default, turn on Fn Lock or change Hotkey Mode or Action Keys Mode in the BIOS (Fix 1).
Also written asalt f4 not working, alt+f4 not working, alt + f4 is not working, alt f4 doesn't work, alt f4 does nothing, alt f4 not working for shutdown.
AffectsWindows 11 and Windows 10 alike. Microsoft documents the same shortcut for both. Windows 10 itself left support on 14 October 2025.
Vendor statusNot a known Windows bug in the Microsoft pages we read. Lenovo, HP and Dell document the Fn key behaviour; Razer documents Gaming Mode blocking Alt + F4.
Time to fixUnder a minute for the Fn key and the desktop focus. About 10 minutes for a BIOS change. Up to 20 minutes for a clean boot.

Facts checked on 14 October 2026. Steps written for Windows 11 (25H2 and 26H2) and Windows 10 22H2.

What Alt + F4 does, and what "not working" usually means

Microsoft's list of Windows keyboard shortcuts gives Alt + F4 one job with two faces: "Close the active window. If no windows are open, prompt to shutdown." So the same keys close Notepad when Notepad is in front, and open the Shut Down Windows box when the desktop is in front.

Under the surface, Windows turns the shortcut into a close request for the active window (the window menu's Close command). Microsoft's developer documentation says an app receives that request and may ask you to confirm first. By default the window is then destroyed. An app can also handle the request in its own way.

What you see tells you which part failed
What happens when you press Alt + F4What it means
Nothing anywhere, but the volume, the microphone or the screen brightness changesThe F4 key sent its media action. Windows never received F4. Go to Fix 1.
Nothing anywhere, and nothing else changesSomething between the keyboard and Windows ate the shortcut: Fn layer, Gaming Mode, a remapping tool or the keyboard itself.
Apps close, but on the desktop no shutdown box appearsThe desktop was not the active window, or File Explorer is stuck. Go to Fix 2.
Every app closes except one game or programThat program is frozen, is waiting for a hidden question, or handles close requests itself. Go to Fix 4.
The shutdown box opens, but Enter does not shut downThe list in the box is set to another action, such as Switch user. Pick Shut down in the list.
The keys must reach Windows as Alt and F4

On a laptop the top row has two meanings. Lenovo's support article calls them the hotkey function and the legacy Fx function. If the hotkey function comes first, pressing F4 alone mutes, dims or switches something, and Alt + F4 never happens.

Why Alt + F4 is not working: causes ranked by how often they apply

The keys pass through five layers before the window gets the close request. Any layer can swallow the shortcut, so the fix depends on where it gets lost. The order below follows how often each cause is behind the symptom, judged from the vendor documents and the questions on Microsoft's own forum.

Diagram of the five layers an Alt + F4 press passes: the keys, the Fn layer, keyboard software, Windows and the app, each with the fix numbers that belong to it
Where an Alt + F4 press can get lost, and which fix belongs to each layer.
How oftenCauseTypical signFix
Most oftenF4 is in hotkey or media mode (laptops, compact and office keyboards)Fn + Alt + F4 works, Alt + F4 alone does notFix 1
OftenThe desktop is not the active window when you want to shut downWorks after a click on the desktop or a refreshFix 2
Often on gaming keyboardsGaming Mode or a key remapping tool blocks the combinationStarted after installing the keyboard's app; a lit Gaming Mode keyFix 3
Common in gamesThe app is frozen, shows a hidden question, or handles the close itselfOnly one program ignores the shortcutFix 4
Less oftenFile Explorer, which draws the desktop and taskbar, is stuckDesktop and taskbar react slowly or not at allFix 5
Rarely, on work PCsA policy removed the shut down commandsShut down is also missing from StartFix 6
RarelyA faulty key, keyboard firmware or driverAlt + F4 works on the On-Screen Keyboard onlyFix 7
RarelyThird-party software or a damaged user profileWorks in a clean boot or another accountFix 8
What we left out

Older guides send you to update Windows, run SFC and DISM and scan for malware first. None of these touches the Fn layer or the desktop focus, which cause most cases. We kept only fixes that act on a layer the shortcut really passes through.

The 30-second test: find out which fix is yours

Before changing anything, find the layer. Open Notepad, click inside it so it is the active window, and try the steps below in order. Stop at the first one that closes Notepad.

  1. Press Alt + F4. If Notepad closes, the keys work: the problem is the desktop or one app. Go to step 4.
  2. Hold Fn and press Alt + F4. If Notepad closes now, the F4 key is in hotkey mode. Use Fix 1.
  3. Open the On-Screen Keyboard with Win + Ctrl + O, or Settings > Accessibility > Keyboard > On-Screen Keyboard. Click inside Notepad, then click Alt and F4 on the screen keyboard. If Notepad closes only this way, the physical keyboard or its software is the cause: Fix 3, then Fix 7.
  4. Press Win + D, then Alt + F4. If the Shut Down Windows box opens, the shortcut works and you only need Fix 2. If nothing opens, try Fix 5, then Fix 6.
  5. If only one game or program ignores Alt + F4 while Notepad closes, go to Fix 4.
Decision chart with four results of the Notepad test: Fn plus Alt plus F4 works, only the On-Screen Keyboard works, the shutdown box does not open, one app ignores the shortcut, each pointing to a fix
The 30-second test: the first result that closes Notepad tells you which fix to use.

On Windows 10 the On-Screen Keyboard switch is under Settings > Ease of Access > Keyboard, in the toggle Use the On-Screen Keyboard. Microsoft documents both paths.

How to fix Alt + F4 not working in Windows

Fixes 1 to 3 solve the keyboard side and cover most laptops and gaming keyboards. Fixes 4 to 6 are for one app or for the shutdown box. Fixes 7 and 8 are for the rare case where nothing above helps. Use the test above to jump straight to yours.

What you see or haveStart with
A laptop, or a keyboard whose F4 key also shows an icon; Fn + Alt + F4 worksFix 1
Alt + F4 closes apps, but on the desktop no shutdown box appears until you click or refresh itFix 2
A Razer or other gaming keyboard, or a key remapping tool such as PowerToysFix 3
One game or program ignores Alt + F4, everything else closesFix 4
Desktop and taskbar respond slowly, and the shutdown box never comesFix 5
A work or school PC, and Shut down is missing from Start as wellFix 6
Alt + F4 works only on the On-Screen KeyboardFix 7
Nothing above helpsFix 8

Fix 1. Press Fn + Alt + F4, then turn on Fn Lock or change the hotkey setting

1 to 10 minutesLow riskYou use a laptop, or a keyboard where F4 also carries an icon such as a speaker, a microphone or a sun.

On these keyboards the top row sends its media or hotkey action first. Windows only receives a real F4 when Fn is held, or when the keyboard is switched so the F keys come first.

Comparison of the two laptop top-row modes: media keys first, where Fn plus Alt plus F4 is needed, and F1 to F12 first with Fn Lock on, where Alt plus F4 works alone, with the switch for Lenovo, HP and Dell
What the F4 key sends in each mode, and how Lenovo, HP and Dell switch between them.
  1. Click inside the window you want to close.
  2. Hold Fn, keep it down, and press Alt + F4. If the window closes, the shortcut works and only the F4 mode is in the way.
  3. To make plain Alt + F4 work again, turn on Fn Lock. On ThinkPads Lenovo's instruction is Fn + Esc. Dell's office keyboards and some Dell Latitude laptops use the same keys.
  4. Press Alt + F4 without Fn. If it now closes the window, you are done. Media actions now need Fn plus the key.
  5. If Fn + Esc does nothing, or the setting is lost after a restart, use the BIOS setting of your maker below.
Where the F-key setting lives, from each maker's support pages
MakerSettingWhat to choose for plain Alt + F4
Lenovo ThinkPad (Think-branded)Fn + Esc turns on Fn LockFn Lock on
Lenovo IdeaPad and other Lenovo-brandedBIOS, Configuration tab, Hotkey ModeDisabled, then F10 and Enter to save. On some Yoga models the setting is in Lenovo Vantage instead.
HP consumer laptopsBIOS, System Configuration, Action Keys ModeDisabled
HP ProBook and EliteBook (models in HP's article)Press Esc at power-on, then F10, Advanced, System Options, Launch Hotkeys without Fn KeypressCleared
Dell office keyboards (KB216, KB500, KB700 and others)Fn + Esc swaps the primary and secondary functionsSwap once, or press Fn + Alt + F4

Lenovo's article adds two useful notes. If Fn + Esc works but does not stay on after a restart, update the BIOS or the hotkey software. If Hotkey Mode is missing from the BIOS, check Lenovo's site for a BIOS update.

It worked if: Alt + F4 closes the active window without Fn, and on the desktop it opens the Shut Down Windows box.

If not: If even Fn + Alt + F4 does nothing, the F key mode is not the cause. Go to Fix 2 for the desktop, or Fix 3 for a gaming keyboard.

Fix 2. Make the desktop the active window before you press Alt + F4 to shut down

1 minuteNo riskAlt + F4 closes apps, but the shutdown box appears only after you click the desktop or refresh it.

Alt + F4 always acts on the active window. The shutdown box belongs to the desktop, so it opens only when the desktop itself has focus. If the taskbar, a tray app or an invisible window has focus, the shortcut goes there instead.

This matches the question at the top of this page exactly: the shortcut works after a refresh of the desktop, because the refresh puts the focus on the desktop. Raymond Chen of Microsoft described the same trick years ago: click on the desktop and type Alt + F4 to call up the shutdown dialog.

  1. Save your work in open apps.
  2. Press Win + D. Microsoft lists it as "Display and hide the desktop": all windows step aside and the desktop becomes active.
  3. Press Alt + F4. The Shut Down Windows box opens with a list of actions.
  4. Check the list in the box. If it shows Switch user, Sign out or Restart, open the list and choose Shut down.
  5. Select OK or press Enter.
If Win + D does not work either

Click once on an empty part of the desktop, away from icons, and press Alt + F4. If that also fails, File Explorer may be stuck: go to Fix 5.

Some readers on Microsoft's forum report that the box started to default to Switch user instead of Shut down in Windows 11, so pressing Enter did not turn the PC off. A volunteer moderator there linked it to the policy Change Start Menu power button. We could not confirm the cause; choosing Shut down in the list works either way.

It worked if: The Shut Down Windows box opens on the first press, and Shut down turns the PC off.

If not: If the box does not open even with the desktop active, go to Fix 5 to restart File Explorer, then Fix 6.

Fix 3. Turn off Gaming Mode or remove a key remapping that blocks Alt + F4

3 minutesLow riskYou use a gaming keyboard, a keyboard app, PowerToys or another key remapping tool.

Gaming keyboards can block Alt + F4 on purpose so a game is not closed by accident. Remapping tools can turn the combination into something else. Both act before Windows sees the shortcut.

Razer documents this plainly. The BlackWidow V4 master guide says Fn + F10 turns on Gaming Mode, which "disables the Windows Key, Menu/Apps Key, Alt+Tab, and Alt+F4 functions to avoid accidental usage". The Gaming Mode key lights up while it is on.

  1. Look at your keyboard for a lit Gaming Mode key or indicator, often on F10 or near the arrow keys.
  2. Press the Gaming Mode combination of your keyboard to turn it off. On the Razer BlackWidow V4 it is Fn + F10.
  3. If you want to keep Gaming Mode for games, open Razer Synapse, select the keyboard, and change the Gaming Mode settings so Alt + F4 stays enabled.
  4. If you use PowerToys, open PowerToys Settings, then Keyboard Manager, then Remap a shortcut. Delete any row that uses Alt + F4 as the shortcut to change.
  5. For other keyboard apps, look for a Gaming Mode, Game Mode or Windows key lock in the app and turn it off for a test.
Not every keyboard app is the same

We confirmed the Alt + F4 block only in Razer's own guides. Other makers name their game modes differently and may block only the Windows key. Microsoft notes that PowerToys remappings work only while PowerToys runs and Keyboard Manager is enabled, so quitting PowerToys is a quick test.

It worked if: With Gaming Mode off or the remapping removed, Alt + F4 closes Notepad again.

If not: If the keyboard app is closed and the shortcut still fails, test the keyboard itself in Fix 7, then look for other software in Fix 8.

Fix 4. End the app that ignores Alt + F4 in Task Manager

1 minuteRead the warningAlt + F4 closes Notepad and other apps, but one game or program does not react.

A close request is a message the app must process. A frozen app cannot process it, and an app may wait for an answer to a question hidden behind another window. Microsoft documents that apps can handle the close request in their own way.

Unsaved work in that app is lost

Ending a task does not let the app save. Before you end it, press Alt + Tab to look for a hidden save question, and give a busy app a minute to finish. Your other apps and files are not affected.

  1. Press Alt + Tab and look for a small window from the same app, such as Do you want to save changes? Answer it if you find one.
  2. In a full-screen game, use the game's own menu to quit first. Some games show their own exit screen on Alt + F4 or ignore it.
  3. If the app is frozen, press Ctrl + Shift + Esc to open Task Manager.
  4. Select the app under Apps, then select End task.
The frozen app selected in Task Manager and the End task button: screenshot taken on Windows 11 26H2
Task Manager on Windows 11: select the app that ignores Alt + F4, then End task.

Full steps, including the command taskkill for an app that does not end: Close a frozen app (Task Manager, Force Quit).

It worked if: The app disappears from the screen and from the Apps list in Task Manager, and it starts normally the next time.

If not: If the same app keeps ignoring Alt + F4 while not frozen, it handles the shortcut itself: use its own Exit command. If every app ignores it, go back to Fix 1.

Fix 5. Restart Windows Explorer so the desktop can answer Alt + F4

2 minutesLow riskThe shutdown box never appears on the desktop, and the desktop or taskbar responds slowly.

The desktop and the taskbar belong to the Windows Explorer process. When it hangs, the desktop cannot take the focus or open its shutdown box. A restart builds the desktop again without signing you out.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. On the Processes page, find Windows Explorer.
  3. Select it and choose Restart task at the top, or right-click it and choose Restart.
  4. Wait until the taskbar and desktop icons return, then press Win + D and Alt + F4.
Task Manager, Processes, Windows Explorer selected and the Restart task button: screenshot taken on Windows 11 26H2
Windows Explorer selected in Task Manager on Windows 11, with Restart task at the top.

Step by step for Windows 11 and Windows 10: Restart File Explorer. The taskbar disappears for a few seconds during the restart, which is normal.

It worked if: The taskbar flickers and comes back, and Alt + F4 on the desktop opens the Shut Down Windows box.

If not: If the box still does not open and Shut down is also missing from Start, go to Fix 6. Otherwise try Fix 8.

Fix 6. Check whether a policy removed the shut down commands

5 minutesLow riskShut down is missing from Start as well, or the PC is managed by work, school or a previous owner.

Microsoft's policy Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands removes these commands from the Start menu and the Windows Security screen. If it is on, shutting down by shortcut is blocked by design, not broken.

On a work or school PC, ask IT

A policy set by your organisation comes back at the next sync, and changing it may break their rules. On your own PC, back up the registry before deleting a value: Back up the registry before editing it. The backup lets you put it back in one step.

  1. Open Terminal or Command Prompt and check your user policy:
    reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoClose
  2. If the answer says that the value was not found, this policy is not set. Skip to Fix 7.
  3. If it shows NoClose with 0x1, the policy is on.
  4. On Windows 11 or 10 Pro, open the Local Group Policy Editor (Open the Local Group Policy Editor) and go to User Configuration > Administrative Templates > Start Menu and Taskbar.
  5. Open Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands, choose Not Configured, and select OK.
  6. On Home editions there is no editor. After the registry backup, delete the value from an administrator window:
    reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoClose /f
  7. Sign out and sign in again, then test with Win + D and Alt + F4.

Microsoft's description covers the Start menu and the Windows Security screen. It does not say exactly what the Alt + F4 box shows under this policy, and we could not confirm that from a Microsoft source. Treat this fix as a check for managed PCs.

It worked if: Shut down is back in the Start power menu, and Alt + F4 on the desktop offers it again.

If not: If NoClose was not set, the policy is not your cause. Test the keyboard in Fix 7.

Fix 7. Test the keyboard and reinstall its driver

10 minutesLow riskAlt + F4 works on the On-Screen Keyboard but not on the physical keyboard, even with Fn and without any keyboard app.

When the on-screen keys work, Windows and the app are fine, and the fault sits in the keyboard, its firmware or its driver. Reinstalling the driver rules out the software part in a few minutes.

  1. Connect another USB keyboard, or try your keyboard on another PC. Microsoft staff on its forum suggest the same cross test.
  2. Right-click Start and choose Device Manager.
  3. Expand Keyboards. Right-click your keyboard, usually HID Keyboard Device or Standard PS/2 Keyboard on laptops.
  4. Choose Update driver, then Search automatically for drivers.
  5. If nothing changes, right-click the keyboard again, choose Uninstall device, confirm, and restart. Windows installs the driver again at startup.
Device Manager on Windows 11 with Keyboards expanded, HID Keyboard Device right-clicked to Update driver, and the box Search automatically for drivers
Device Manager on Windows 11: the keyboard sits under Keyboards, and Update driver searches automatically.

The full driver steps, with roll back for a driver that stopped working after an update: Update, roll back or reinstall a driver. A case on Microsoft's forum shows why the cross test matters: a user's wireless keyboard failed Alt + F4 on two different PCs while another keyboard worked, so the keyboard itself was at fault.

It worked if: Alt + F4 works on the physical keyboard again, or the cross test shows clearly that the keyboard is the cause.

If not: If the keyboard works on another PC but not on yours, run Fix 8. If it fails everywhere, replace the keyboard or ask its maker about a firmware update.

Fix 8. Run a clean boot, then test in a new user account

20 minutesLow riskNothing above helped, and the keyboard works on another PC.

A background program can intercept key combinations without any visible sign. A clean boot starts Windows without third-party services and startup apps. A new account shows whether the problem lives in your user profile.

  1. Press Win + R, type msconfig and press Enter.
  2. On the Services tab, tick Hide all Microsoft services, then select Disable all.
  3. On the Startup tab, select Open Task Manager and disable each startup app.
  4. Restart and test Alt + F4 in Notepad and on the desktop.
  5. If it works now, turn the services and apps back on in small groups to find the one that blocks the shortcut.
  6. If it still fails, create a local test account and test there.
System Configuration, Services tab with Hide all Microsoft services ticked and the Disable all button: screenshot taken on Windows 11 26H2
System Configuration with Hide all Microsoft services ticked, so only third-party services remain to disable.

Step by step with screenshots: How to perform a clean boot in Windows and Create a new user account to test a problem. When the test is over, undo the clean boot so your programs start normally again.

It worked if: Alt + F4 works in the clean boot or in the new account, which points to one program or to your old profile.

If not: If it fails in both, read the section below on what to check next and what to send to support.

Alt + F4 still not working: what to check and send to support

There is no Windows log for a shortcut that did nothing, so the evidence is the test results. Collect them before you contact the laptop or keyboard maker.

  • The results of the 30-second test: does Fn + Alt + F4 work, does the On-Screen Keyboard work, does Win + D then Alt + F4 work.
  • The laptop or keyboard model and the BIOS version. Lenovo, HP and Dell tie the F key behaviour to the BIOS and their hotkey software.
  • Whether the keyboard fails on another PC too. If it does, it is a hardware or firmware matter for the maker, not Windows.
  • Whether the clean boot or a new account changed anything. If yes, name the program you found.
Signs it is the keyboard, not Windows

Other keys with Alt also fail, F4 alone fails in apps, a key feels loose, or the keyboard fails on a second PC. On a laptop, test an external USB keyboard: if that one works, the built-in keyboard needs service.

Other ways to close a window or shut down without Alt + F4

While you look for the cause, these shortcuts from Microsoft's own list do the same jobs.

You want toPress
Close the active window without F4Alt + Spacebar, which opens the window's menu, then choose Close
Close one document in apps with several documentsCtrl + F4
End a frozen appCtrl + Shift + Esc for Task Manager, then End task
Shut down without the desktop boxCtrl + Alt + Del, then the power button on the security screen
Get to the desktop firstWin + D

How to keep Alt + F4 working

  • After a BIOS update or a reset of BIOS defaults, check the Fn Lock or Hotkey Mode setting again. Defaults may put media keys first.
  • Know where your Gaming Mode key is, and turn Gaming Mode off when you leave a game.
  • Keep a list of the shortcuts you remapped in PowerToys or a keyboard app, so you know where to look.
  • Before shutting down with Alt + F4, press Win + D, and glance at the list in the box before you press Enter.
  • Install the keyboard and hotkey software from your laptop maker's support page, where Lenovo says the Fn Lock memory depends on it.

Windows 10 left support on 14 October 2025. The shortcut works the same there, but BIOS and hotkey software updates for older laptops may stop coming.

Frequently asked questions

Why is Alt + F4 not working in Windows 11?

Windows 11 did not change the shortcut: Microsoft's shortcut list still says Alt + F4 closes the active window, or prompts to shut down when no window is open. When it fails after an upgrade, the cause is usually around Windows. A new laptop may put media keys first, a BIOS update may reset Fn Lock, or the desktop may not be the active window when you press it. Run the 30-second test above to see which layer is at fault.

Is Alt + F4 not working on Windows 10 a different problem?

No. The shortcut, the Fn key behaviour and every fix on this page are the same on Windows 10 22H2. Only the menu names differ in places, such as the On-Screen Keyboard switch under Settings > Ease of Access > Keyboard. Keep in mind that Windows 10 left support on 14 October 2025, so the PC no longer gets security updates. Your laptop maker may also have stopped releasing BIOS and hotkey updates for it.

Why does Alt + F4 not work on my laptop when it works on my desktop?

Laptop keyboards share the top row between F1 to F12 and hotkeys such as volume, microphone and brightness. When the hotkeys come first, F4 performs its icon's action and Windows never sees F4. Hold Fn and press Alt + F4 to check. To make it permanent, turn on Fn Lock (Fn + Esc on ThinkPads) or change Hotkey Mode on other Lenovo laptops and Action Keys Mode on HP laptops in the BIOS.

How do I use Alt + F4 without the F4 key?

Use Alt + Spacebar in the window you want to close: it opens the window's own menu, where Close does the same as Alt + F4. You can also open the On-Screen Keyboard with Win + Ctrl + O or from Accessibility settings, click inside the target window, then click Alt and F4 on the screen. To shut down, press Ctrl + Alt + Del and use the power button on that screen.

Why does Alt + F4 not close my game?

Alt + F4 sends a close request, and the game decides what to do with it. Some games show their own exit menu, some ignore the request, and a frozen game cannot answer at all. Gaming keyboards add another layer: Razer's Gaming Mode blocks Alt + F4 on purpose. Turn Gaming Mode off, use the game's own exit, or end the game with Ctrl + Shift + Esc and End task.

Why does the Alt + F4 box choose Switch user instead of Shut down?

Users on Microsoft's forum report that the Shut Down Windows box in Windows 11 sometimes preselects Switch user. Pressing Enter then switches users instead of turning off the PC, which looks like Alt + F4 not working for shutdown. A volunteer moderator linked it to the policy Change Start Menu power button, which we could not confirm. The safe habit is to open the list in the box and pick Shut down before you press Enter.

Can Alt + F4 be turned off on purpose?

Yes, by software around Windows. Razer documents that its keyboards' Gaming Mode disables Alt + F4, and tools such as PowerToys Keyboard Manager can remap the combination to another one. A shutdown policy on managed PCs removes the shut down commands from Start and the security screen. In Microsoft's documentation we found no plain Windows setting that turns off Alt + F4 alone, so look at keyboard apps and remapping tools first.

Do I lose unsaved work when I press Alt + F4?

Usually not. Microsoft's developer documentation says an app can ask you to confirm before it closes, and most editors ask whether to save changes. Some apps close at once, though, so save first. Ending an app in Task Manager is different: it does not let the app save. Shutting down from the Alt + F4 box closes all apps, and Windows may wait for or warn about apps with unsaved work.

Did a Windows update break Alt + F4?

We found no Microsoft statement of a known issue with Alt + F4 in the pages we read. A recent question on Microsoft's forum blamed a January update, but the user later found that the keyboard failed on another PC too, while a different keyboard worked. If the problem started after an update, check the Fn Lock setting and the keyboard app first, then roll back the keyboard driver in Device Manager.

Sources

  1. Microsoft Support: Keyboard shortcuts in Windows (Alt+F4, Ctrl+F4, Alt+Spacebar, Win+D, Ctrl+Alt+Del) (support.microsoft.com)
  2. Microsoft Support: Use the On-Screen Keyboard (OSK) to type (support.microsoft.com)
  3. Microsoft Learn: WM_CLOSE message (learn.microsoft.com)

Did this fix work?

One click, no account. It tells the next reader which guides are worth their time.

We show the result once 20 readers have answered.
Still broken? Describe your case with the exact error text.

Questions and experiences: fix Alt + F4 not working in Windows

Still broken, or found a fix we did not cover? Ask here: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

4,322 members already hereThey read, write, comment and vote. 0 verified · 31 joined this year