If the Alt+F4 shortcut suddenly stops closing windows or shutting down your PC in Windows 10, the fix usually involves checking for conflicting keyboard software, enabling the shortcut in Group Policy, or running the keyboard troubleshooter. This guide walks through the most common causes and step-by-step solutions to restore the shortcut quickly.
Why Alt+F4 Stops Working
Alt+F4 is a built-in Windows shortcut that sends a close command to the active window. When it fails, the cause is rarely the physical key. Common culprits include:
- Keyboard or driver issues – outdated or corrupted keyboard drivers can block shortcut processing.
- Third-party software – gaming overlays, macro tools, or keyboard customization apps may intercept the keystroke.
- Group Policy restrictions – some systems disable Alt+F4 via policy, especially on managed or corporate PCs.
- Sticky or Filter Keys – accessibility features can interfere with key combinations.
- Full-screen apps – games or videos running in exclusive full-screen mode sometimes ignore the shortcut.
Understanding the root cause helps you pick the right fix. Below are the most effective solutions in order of likelihood.
Solution 1: Run the Keyboard Troubleshooter
Windows 10 includes a built-in troubleshooter that can detect and fix common keyboard problems.
- Open Settings (Win + I) and go to Update & Security > Troubleshoot > Additional troubleshooters.
- Select Keyboard and click Run the troubleshooter.
- Follow the on-screen instructions. The tool will check for driver issues and reset keyboard settings if needed.
If the troubleshooter finds nothing, move on to the next step.
Solution 2: Update or Reinstall Keyboard Drivers
Outdated or corrupt drivers are a frequent cause of shortcut failures. To update:
- Right-click the Start button and select Device Manager.
- Expand Keyboards, right-click your keyboard device, and choose Update driver.
- Select Search automatically for updated driver software.
If Windows reports the best drivers are already installed, try uninstalling the device and restarting your PC. Windows will reinstall the driver automatically on boot. This often clears glitches that block Alt+F4.
Solution 3: Disable Conflicting Software
Many keyboard customization tools (like AutoHotkey, Razer Synapse, Logitech G HUB, or Corsair iCUE) can remap or consume Alt+F4. To test:
- Open Task Manager (Ctrl + Shift + Esc) and look for any keyboard-related processes.
- Right-click each suspicious process and select End task.
- Try Alt+F4 again. If it works, the software is the culprit. Re-enable the processes one by one to identify the exact one.
Also check if you have any macro or hotkey assignments that override Alt+F4 in those apps. Disable or delete those assignments.
Solution 4: Check Group Policy Settings
If you’re on a work or school PC, an administrator may have disabled Alt+F4 via Group Policy. To check:
- Press Win + R, type
gpedit.msc, and press Enter. - Navigate to User Configuration > Administrative Templates > Start Menu and Taskbar.
- Look for the policy Remove and prevent access to the Shut Down, Restart, Sleep, and Hibernate commands.
- If it’s set to Enabled, set it to Not Configured or Disabled, then restart your PC.
Note: gpedit.msc is only available on Windows 10 Pro, Enterprise, or Education editions. Home users won’t have this tool; skip to the next fix if that applies.
Solution 5: Turn Off Sticky Keys and Filter Keys
Accessibility features can interfere with keyboard shortcuts. To disable them:
- Go to Settings > Ease of Access > Keyboard.
- Turn off Sticky Keys, Filter Keys, and Toggle Keys.
- Also uncheck Show the Sticky Keys icon on the taskbar and Allow the shortcut key to start Sticky Keys.
These features can sometimes cause key combinations to be ignored or delayed. After disabling, test Alt+F4 again.
Solution 6: Use the On-Screen Keyboard to Test Hardware
If the physical Alt or F4 key is faulty, the shortcut won’t work. Use the On-Screen Keyboard to verify:
- Type On-Screen Keyboard in the Start menu and open it.
- Click the Alt key, then click the F4 key on the virtual keyboard.
- If the window closes, the issue is with your physical keyboard. Try cleaning the keys or using an external keyboard.
If the on-screen keyboard also fails, the problem is software-related, and you can continue with the next steps.
Solution 7: Check Full-Screen Apps and Games
Some games and media players running in exclusive full-screen mode ignore Alt+F4 because they capture the keyboard input directly. In such cases:
- Press Alt + Tab to switch to the desktop, then try Alt+F4 again.
- Or use the app’s own close command (usually in its menu or via Ctrl+Q in some apps).
- If the game has a borderless window option, enabling it may restore Alt+F4 functionality.
This is not a system error, but a limitation of how the app handles input.
Solution 8: Create a Registry Workaround (If All Else Fails)
If none of the above works, you can add a registry value to force the shortcut to behave as expected. This is safe if you follow the steps exactly.
- Press Win + R, type
regedit, and press Enter. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer. - If the Explorer key doesn’t exist, right-click on Policies, select New > Key, and name it
Explorer. - In the right pane, right-click and select New > DWORD (32-bit) Value. Name it
NoClose. - Set its value to
0(double-click to edit). This ensures the shutdown command isn’t removed. - Restart your PC.
This registry tweak is only needed if a policy or malware has set NoClose to 1. Always back up the registry before making changes.
Frequently Asked Questions
Why does Alt+F4 work sometimes but not others?
This usually happens when the active window is a full-screen app or a game that captures keyboard input. It can also occur if a background program (like a macro tool) intermittently intercepts the shortcut. Try switching to the desktop first, then using Alt+F4.
Can I remap Alt+F4 to another key?
Yes, you can use third-party tools like AutoHotkey to remap a different key combination to send Alt+F4. For example, you could assign Ctrl+Q to send Alt+F4. However, this won’t fix the underlying issue if the shortcut is being blocked by another program.
Does Alt+F4 shut down Windows 10?
On the desktop, pressing Alt+F4 opens the Shut Down Windows dialog, where you can choose Shut Down, Restart, or Sleep. If a window is open, it closes that window first. If no window is open, the dialog appears.
What if Alt+F4 only fails on the login screen?
At the login screen, Alt+F4 is not supported. You need to log in first. If you want to shut down from the login screen, use the power icon in the bottom-right corner.
Is there a way to close a window without Alt+F4?
Yes, you can click the X button in the top-right corner of most windows. You can also press Ctrl+W to close tabs in browsers, or use the File menu’s Close option in many applications. For the desktop, you can use Win+X then U to access shutdown options.
After trying all fixes, Alt+F4 still doesn’t work. What next?
If you’ve exhausted all software fixes, consider a system restore to a point before the issue started, or run the System File Checker (sfc /scannow) to repair corrupted system files. If the problem persists, it may be a hardware issue with the F4 key itself, and using an external keyboard is a quick test.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Use Multiple CSS Transforms
- How to Delete iOS Calendar Viruses
- How to Spoof Location on iPhone
- iOS App Testing on Multiple Devices: A Guide
- How to Enable Live Captions in Chrome
- X Bar Symbol in Word: 3 Quick Typing Methods