Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows 11 has no universal switch to lock or disable every key on a physical keyboard. Press Windows + L to lock the PC; sign in to unlock Windows. To suppress selected keys on supported managed devices, use Keyboard Filter. If the keyboard will not respond, troubleshoot its connection, power, driver, or hardware.

How to lock a Windows 11 PC with the keyboard

Press Windows + L to lock the current Windows session and display the sign-in screen. Your applications remain open, but anyone returning to the desktop must sign in.

  1. Save any work if necessary.
  2. Press Windows + L.
  3. Leave the computer at the sign-in screen.

This locks Windows, not the keyboard hardware. The keyboard remains available for entering a password or PIN.

How to unlock the PC

At the Windows sign-in screen, press a key or click the screen if the sign-in fields are not visible. Sign in with an enabled method, such as your account password, PIN, security key, fingerprint, or facial recognition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites

Signing in unlocks Windows and returns you to the existing desktop session. It does not re-enable a keyboard disabled through device management, blocked by Keyboard Filter, or affected by a hardware or driver problem.

Open keyboard settings in Windows 11

Press Windows + I to open Settings. To reach the keyboard accessibility options, select Accessibility > Keyboard. You can also open Accessibility settings directly with Windows + U, then select Keyboard.

These settings include options such as Filter Keys and the Print Screen shortcut. They do not provide a universal control that disables every physical keyboard key.

Filter Keys does not lock the keyboard

Filter Keys changes how Windows handles brief, repeated, or accidental keystrokes. It can help users who unintentionally press keys repeatedly, but it does not lock or disable the keyboard.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Hold the Right Shift key for eight seconds to turn Filter Keys on or off. If the keyboard seems unresponsive after using this shortcut, check Settings > Accessibility > Keyboard > Filter Keys.

Use Keyboard Filter to block selected keys or shortcuts

Windows 11 includes Keyboard Filter for managed device-lockdown scenarios. It can suppress configured keys and key combinations on physical keyboards, the Windows on-screen keyboard, and the touch keyboard.

Rank #2
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
  • Media-Friendly: The K400 Plus wireless touch TV keyboard gives you integrated, comfortable control of your PC-to-TV entertainment, eliminating the clutter of a separate keyboard and mouse
  • Plug-and-Play: Simply plug the Unifying receiver into a USB port and the wireless touchpad keyboard is ready to go; adjust controls using the Logitech Options Software to save preferred settings
  • Power-Packed: Built with laid-back control in mind, this wireless TV keyboard has a reliable and long battery life of up to 18 months (2), including an on/off button to help it go even longer
  • Wireless Freedom: Designed for seamless comfort and control, this HTPC keyboard boasts a range of up to 33 ft (1) wireless connectivity, with quiet keys and a large touchpad for easy navigation
  • Broad Compatibility: Designed for use with Windows 7, Windows 8, Windows 10 and later, Android 7 or later, and Chrome OS

It is not a simple global on/off switch. Keyboard Filter must be configured for the specific keys or combinations to block. It supports predefined and custom combinations, administrator-account behavior, accessibility restrictions, and a breakout key sequence for administrative recovery.

Supported Windows 11 editions

Microsoft lists Keyboard Filter for these editions:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Windows 11 Enterprise
  • Windows 11 Enterprise LTSC
  • Windows 11 Education
  • Windows 11 IoT Enterprise
  • Windows 11 IoT Enterprise LTSC

Microsoft does not list Windows 11 Home or Pro as supported editions.

Enable Keyboard Filter through Windows Features

  1. Open Windows Search and type Turn Windows features on or off.
  2. Select Turn Windows features on or off from the results.
  3. Expand Device Lockdown.
  4. Select Keyboard Filter.
  5. Select OK.
  6. Restart the PC when Windows requests it.

Keyboard Filter is enabled after the restart. Disabling it through the same Windows Features interface also requires a restart.

Enable Keyboard Filter from an elevated Command Prompt

On a supported edition, open Command Prompt as an administrator and run:

Dism /online /Enable-Feature /FeatureName:Client-KeyboardFilter

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later

Restart after the command finishes.

For a Windows IoT Enterprise device-lockdown deployment, Microsoft documents this combined command:

Dism /online /enable-feature /featurename:Client-DeviceLockdown /featurename:Client-KeyboardFilter

This is an administrative deployment procedure, not a normal keyboard-lock solution for Windows 11 Home or Pro.

Example: block Ctrl+Alt+Delete

Keyboard Filter can block combinations such as Ctrl + Alt + Delete when the relevant predefined rule is enabled. In an elevated PowerShell window, Microsoft documents this example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

$key = “Ctrl+Alt+Del”
$setkey = Get-WMIObject -class WEKF_PredefinedKey -computer localhost -namespace root\standardcimv2\embedded | where {$_.Id -eq “$key”}
$setkey.Id = $key
$setkey.Enabled = 1
$setkey.Put() | Out-Null

Restart the device before testing the blocked combination. Similar rules can be configured for other predefined or custom combinations, including Alt + F4. Enabling Keyboard Filter alone does not block all typing.

Rank #4
Wireless Keyboard and Mouse Combo, Full Size Silent Ergonomic Keyboard and Mouse, Long Battery Life, Optical Mouse, 2.4G Lag-Free Cordless Mice Keyboard for Computer, Mac, Laptop, PC, Windows
  • 【Ergonomic Wireless Keyboard Mouse 】: Wireless ergonomic keyboard is equipped with adjustable height tilt legs to increase comfort and prevent your wrists injury when typing for a long time. The full size wireless keyboard with numeric keypad and 12 multimedia shortcut keys, such as play/ pause, volume increase and decrease, and email, to help you improve work efficiency
  • 【Stable & Reliable Wireless Connection】: This wireless keyboard and mouse combo share the same USB receiver(stored in the mouse), and they can also be used separately. Plug & play, no need to download any software, 2.4 GHz wireless provides a powerful and reliable connection up to 33 feet(10m) without any delays.You can enjoy the convenience and freedom of wireless connection at home or at work
  • 【Comfortable Optical Mouse】: This compact lightweight wireless mouse features a hand-friendly contoured shape for all-day comfort, and smooth, precise tracking.1600 DPI to meet your daily needs. Perfect for home & office work and entertainment
  • 【Long Battery Life】: Up to 365 Days of battery life for keyboard and mouse wireless, say goodbye to the hassle of charging cables and replacing batteries. After 10 minutes of inactivity, the wireless keyboard mouse combo will automatically go into sleep mode to save energy. The wireless keyboard requires one AAA battery, and the wireless mouse requires one AA battery.
  • 【Less Noise, More Quiet Keys】: Soft membrane keys provide a quiet and comfortable typing experience, So you can type with confidence on a wireless keyboard crafted for comfort, precision and fluidity. The wireless mouse adopts silent micro-motion technology, which is almost completely silent when clicked. No more concerns about disturbing others.

Important Keyboard Filter limitations

  • Administrator accounts: filtering is disabled for administrators by default. If administrator filtering is changed, the administrator may need to sign out and back in before the change applies.
  • Safe Mode: Keyboard Filter is not loaded in Safe Mode, so blocked keys work there.
  • Sleep key: Keyboard Filter cannot block the Sleep key.
  • Special hardware keys: some keys, including certain rotation-lock keys, have no virtual-key definition and must be configured by scan code.
  • Numeric keypad differences: the main keyboard and numeric keypad can use different virtual keys or scan codes for +, *, -, /, and decimal. Separate rules may be needed.
  • Third-party keyboard utilities: filter drivers from software such as Microsoft IntelliType Pro can interfere with Keyboard Filter, especially for extended keys such as BrowserHome and Search.
  • Registry location: Keyboard Filter settings are stored under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Embedded\KeyboardFilter. Editing this area configures the feature; it is not a general Windows keyboard-lock mechanism.

If the keyboard is not working after Windows starts

A keyboard that seems locked may have a connection, power, battery, driver, or hardware problem. Try these checks before changing Windows configuration:

  1. Check the cable or battery. Reconnect a wired keyboard. Replace batteries in a wireless model and check its power switch.
  2. Try another USB port. Connect directly to the PC instead of through an unpowered USB hub.
  3. Reset the wireless connection. Turn the keyboard off and on, then reset or reconnect its receiver according to the manufacturer’s instructions.
  4. Clean the keys. Dirt or debris can prevent individual keys from registering.
  5. Test another keyboard. If another keyboard works on the same PC, the original keyboard, receiver, cable, or batteries may be at fault.
  6. Test the keyboard on another PC. If it fails there as well, troubleshoot or replace the keyboard rather than changing Windows settings.

Check for a keyboard driver update

Device Manager is not a universal keyboard lock or unlock control. To check for a driver update:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Windows Search and type Device Manager.
  2. Select Device Manager.
  3. Expand the relevant hardware category, usually Keyboards.
  4. Double-click the keyboard device.
  5. Open the Driver tab.
  6. Select Update Driver and follow the prompts.

Uninstalling a keyboard device is not a dependable permanent lock or unlock method. Windows may detect and reinstall it after a restart or hardware rescan, and results vary by keyboard type.

What about an Fn keyboard-lock shortcut?

There is no universal Windows 11 shortcut such as Fn plus a keyboard-lock icon. Laptop manufacturers can assign Fn combinations to firmware-specific functions. The exact combination depends on the laptop model.

Check the laptop manufacturer’s manual or support page for a model-specific Fn function. Do not treat an Fn shortcut as a standard Windows 11 keyboard lock or unlock command.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keyboard Filter and the Windows + L shortcut

Be careful when filtering Windows shortcuts. Keyboard Filter can be configured to suppress Windows + L, but Microsoft documents an on-screen keyboard edge case in which locking the screen can send an additional Windows-key keystroke. This can cause unexpected behavior, particularly in shell configurations documented by Microsoft.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Logitech K250 Compact Wireless Bluetooth Keyboard with Number Pad, Graphite
  • Connect in seconds: Fast, easy Bluetooth wireless technology simply connects without the need for a dongle or USB port
  • Durable and reliable: Built for quality, K250 offers long-lasting keys, a spill-resistant design (2)
  • Comfort is key: Deep-profile keys and an adjustable tilt-leg design make typing feel great
  • Space-saving: with a compact layout that still includes number pad, arrow keys, and handy F-key shortcuts
  • Made responsibly: Designed to last, K250 plastic parts are durably made with minimum 64% recycled plastic (3) to withstand everyday use

Before blocking sign-in, secure-attention, or escape combinations on a managed device, test the configuration with a separate administrator recovery method.

FAQ

Is there a keyboard lock button in Windows 11?

No universal Windows 11 consumer setting disables every key on a physical keyboard. Windows provides PC lock with Windows + L; supported editions also provide Keyboard Filter for suppressing selected keys and combinations.

How do I unlock my Windows 11 keyboard?

If you pressed Windows + L, sign in at the Windows sign-in screen with your password, PIN, security key, or another enabled sign-in method. If the keyboard still does not respond, check its cable, USB port, batteries, wireless receiver, driver, and hardware.

Does Filter Keys disable the keyboard?

No. Filter Keys changes how Windows handles brief or repeated keystrokes. Hold Right Shift for eight seconds to toggle its accessibility shortcut, or manage it under Settings > Accessibility > Keyboard.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can Windows 11 Home or Pro use Keyboard Filter?

Microsoft’s supported-edition list includes Enterprise, Enterprise LTSC, Education, IoT Enterprise, and IoT Enterprise LTSC. It does not list Windows 11 Home or Pro.

Can I lock only certain keys?

On a supported edition, Keyboard Filter can suppress configured keys, predefined combinations, or custom combinations. It must be configured for each required key or combination; enabling the feature does not block all keyboard input.

Will uninstalling the keyboard in Device Manager lock it permanently?

No. Windows may redetect and reinstall the device after a restart or hardware rescan. Uninstallation is not a documented permanent keyboard-lock method.

The Bottom Line

For normal privacy, press Windows + L to lock the Windows 11 PC and sign in normally to unlock it. To suppress specific keys on a managed device, use Keyboard Filter only on a supported Windows edition and configure the exact keys or combinations. If the keyboard will not type, troubleshoot the hardware and connection instead of looking for an unlock shortcut.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 2
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
Logitech K400 Plus Wireless Touch TV Keyboard for PC-Connected TV - Black
Product carbon footprint: 4.9 kg CO2e Certified carbon neutral
$33.99
SaleBestseller No. 3
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48
Bestseller No. 5
Logitech K250 Compact Wireless Bluetooth Keyboard with Number Pad, Graphite
Logitech K250 Compact Wireless Bluetooth Keyboard with Number Pad, Graphite
Comfort is key: Deep-profile keys and an adjustable tilt-leg design make typing feel great
$22.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.