A proper fix for the Copilot key on ASUS, Lenovo, HP, Dell, Acer, Samsung, and Microsoft Surface laptops. Unlike simple remapping guides, this actually intercepts all three key events the Copilot button sends.
Many laptops (2024+) replaced the Right Ctrl key with a Copilot key. Pressing it launches Microsoft Copilot instead of acting as a modifier — making it useless for keyboard shortcuts, gaming, or any workflow that depends on Right Ctrl. This affects ASUS, Lenovo, HP, Dell, Acer, Samsung, and Microsoft Surface models.
The Copilot key does not send a single keycode. It sends three separate key events in rapid succession (~1ms apart):
1. LWin down
2. LShift down
3. F23 down (scan code 0x06E)
Most remapping guides online only remap F23 to another key. This fails because:
- LWin still reaches the OS, triggering the Start menu or Windows shortcuts.
- LShift still reaches the OS, modifying other key presses.
- By the time F23 arrives, the damage is already done.
Remapping F23 alone is like locking the back door while leaving the front door wide open.
This fix uses a 3-state interception approach at the keyboard hook level:
-
Intercept LWin -- When LWin is pressed, the script does not pass it to the OS. Instead, it enters a
"waiting"state and starts a 30ms timer. -
Intercept LShift -- If LShift arrives while in the
"waiting"state (i.e., right after LWin), it is also suppressed. -
Check for F23 -- Two outcomes:
- F23 arrives within 30ms: This confirms it was the Copilot key. The script cancels the timer, discards LWin and LShift entirely, and sends RCtrl instead.
- F23 does NOT arrive within 30ms: This was a real LWin press (and possibly LShift). The timer fires, and the script passes the original key(s) through to the OS normally.
The result: the Copilot key becomes Right Ctrl, and all other keys (including Win and Shift) work exactly as expected.
- Windows 10 / 11
- AutoHotkey v2 (v2.0 or newer -- v1.x is NOT compatible)
- Install AutoHotkey v2.
- Download or clone this repository.
- Right-click
instalar.ps1and select Run with PowerShell.
This will:
- Create a startup shortcut so the fix runs automatically on every boot.
- Launch the fix immediately.
- Install AutoHotkey v2.
- Double-click
copilot_a_ctrl.ahkto run the fix. - (Optional) To run on startup, create a shortcut to
copilot_a_ctrl.ahkin your Startup folder:- Press
Win+R, typeshell:startup, press Enter. - Copy a shortcut of
copilot_a_ctrl.ahkinto that folder.
- Press
After running the fix, press the Copilot key. It should now behave as Right Ctrl. You can test by pressing Copilot + C (should copy, not launch Copilot).
Not all ASUS models necessarily send the same key codes. The detectar_tecla.ps1 script is a low-level keyboard hook diagnostic that shows you exactly what your Copilot key sends.
- Right-click
detectar_tecla.ps1and select Run with PowerShell. - Press the Copilot key (and any other keys for comparison).
- The script will display the virtual key code, scan code, and flags for each key event.
- Press
Ctrl+Cto exit.
If your laptop matches the known pattern, you should see three rapid events:
VK: 0x005B (91) | ScanCode: 0x015B (347) | Flags: 0x0001 (Extended) | Name: LeftWindows
VK: 0x00A0 (160) | ScanCode: 0x002A (42) | Flags: 0x0000 | Name: ...
VK: 0x0086 (134) | ScanCode: 0x006E (110) | Flags: 0x0000 | Name: ...
If your output looks different, please open an issue with your model name and the output -- this will help us support more devices.
- ~30ms delay on the Win key: The script holds LWin for up to 30ms before passing it through. This delay is imperceptible in normal use.
- Very fast Win+Shift combos: If you press Win and Shift within a 30ms window, the Shift press might be suppressed until the timer fires. In practice this is extremely rare and does not affect normal usage.
- Requires AHK v2: The script uses AutoHotkey v2 syntax. It will not run on AHK v1.x. Make sure you install the correct version.
- One instance only: The script enforces
#SingleInstance Force, so running it again will replace the previous instance rather than creating duplicates.
| Model | Status | Notes |
|---|---|---|
| ASUS Zenbook S 16 (UM5606) | Verified | Copilot key sends LWin+LShift+F23. Fix works perfectly. |
See SUPPORTED_DEVICES.md for a full list of laptops known to have the Copilot key.
We need your help testing on more devices. See the Contributing section below.
Contributions are welcome! Here is how you can help:
-
Test on your ASUS laptop -- Run
detectar_tecla.ps1, note your laptop model, and report whether the fix works. Open an issue or PR to add your model to the "Tested On" table. -
Different key codes -- If your ASUS laptop sends different codes for the Copilot key, share the output of
detectar_tecla.ps1so we can add support for your model. -
Bug reports -- If the fix causes issues with specific software or key combinations, please open an issue with details.
-
Translations -- The scripts have comments in Spanish. If you want to help translate them or add documentation in other languages, PRs are welcome.
How do I disable the Copilot key on my ASUS laptop? Run this fix — it intercepts the Copilot key and remaps it to Right Ctrl. You can also modify the script to map it to any other key.
Does this work on Lenovo / HP / Dell / Acer / Samsung / Surface laptops?
Yes. Microsoft mandated the same LWin+LShift+F23 signal across all brands. See SUPPORTED_DEVICES.md for a full list. Run detectar_tecla.ps1 to verify your specific model.
Can I remap the Copilot key to something other than Right Ctrl?
Yes. Edit copilot_a_ctrl.ahk and change the Send "{RCtrl}" line to whatever key you prefer.
Why not just use PowerToys / SharpKeys / Registry remapping? Because the Copilot key sends three keys (LWin+LShift+F23), not one. Tools that remap a single key only catch F23, leaving LWin and LShift to trigger unwanted actions. This script intercepts all three.
Does this affect the regular Windows key? No. The script detects the Copilot key's unique 3-key sequence. Normal Win key presses pass through unchanged (with an imperceptible ~30ms delay).
This project is licensed under the MIT License. See LICENSE for details.