Repository: PowerToys
Issue: Remap CapsLock to Ctrl does not work in Hyper-V Windows 11 VM
Labels: Issue-Bug,Needs-Triage

### Microsoft PowerToys version

v0.83.0

### Installation method

Scoop

### Running as admin

None

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

Configure Caps Lock -> Ctrl in the Keyboard Manager:
![image](https://github.com/user-attachments/assets/2f6b6ff4-36ae-423d-b52e-3887de83e56a)


### ✔️ Expected Behavior

When I use `Ctrl+<KEY>`, it should work the same as `CapsLock + <KEY>`. For example CTRL+N launches a new windows in Google Chrome.

### ❌ Actual Behavior

`CapsLock + <KEY>` seems to just do `<KEY>`.

When I click to configure the keyboard remapping inside PowerToys, it does actually pick up `Ctrl (left)` when I clicked CapsLock. So on some level it is reconfigured and sending the ctrl key instead of CapsLock.

### Other Software

In Hyper-V configuration, it is set to use "virtual machine" keyboard when on full-screen.
![image](https://github.com/user-attachments/assets/3ed56360-584e-4271-8811-88bd27d402bc)


`fastfetch` results from the VM:

```
PS C:\Users\windows1user1> fastfetch
/////////////////  /////////////////    windows1user1@windows1
/////////////////  /////////////////    ----------------------
/////////////////  /////////////////    OS: Windows 11 (Pro) x86_64
/////////////////  /////////////////    Host: Virtual Machine (Hyper-V UEFI Release v4.1)
/////////////////  /////////////////    Kernel: WIN32_NT 10.0.22631.4037 (23H2)
/////////////////  /////////////////    Uptime: 16 mins
/////////////////  /////////////////    Packages: 13 (scoop)
/////////////////  /////////////////    Shell: Windows PowerShell
                                        Display (Default_Monitor): 3072x1920 @ 32 Hz (as 1536x960)
/////////////////  /////////////////    DE: Fluent
/////////////////  /////////////////    WM: Desktop Window Manager
/////////////////  /////////////////    WM Theme: Custom - Mint dark (System: Dark, Apps: Dark)
/////////////////  /////////////////    Icons: Recycle Bin
/////////////////  /////////////////    Font: Segoe UI (12pt) [Caption / Menu / Message / Status]
/////////////////  /////////////////    Cursor: Windows Default (32px)
/////////////////  /////////////////    Terminal: Windows Terminal 1.21.2408.23001
/////////////////  /////////////////    Terminal Font: Cascadia Mono (12pt)
                                        CPU: AMD Ryzen 9 6900HS Creator Edition (8) @ 4.92 GHz
                                        GPU 1: Microsoft Hyper-V Video [Integrated]
                                        GPU 2: Microsoft Remote Display Adapter
                                        Memory: 4.38 GiB / 5.80 GiB (76%)
                                        Swap: 39.87 MiB / 1.38 GiB (3%)
                                        Disk (C:\): 34.87 GiB / 126.13 GiB (28%) - NTFS
                                        Disk (Y:\): 422.33 GiB / 953.06 GiB (44%) - NTFS [External]
                                        Local IP (Ethernet): 192.168.1.137/24
                                        Battery: 65% [Discharging]
                                        Locale: en-US
```