Skip to content

Feature request: swap <control> and <command> #4003

Closed

Description

@pygy

Hi, it would be awesome if you could add the possibility to swap the ⌃ (control) and ⌘ in the VM.

I have the ⌘ + C + V, S shortcuts hardwired in my fingers after 10+ years of MacOS usage, and the guest OSes have these mapped to ⌃ (control) instead.

Activity

  1. pygy commented on May 18, 2022

    @pygy
    Author

    Thinking about it, this may interfere with the host keyboard shortcuts...

  2. jfarl commented on Aug 3, 2022

    @jfarl

    Seconding this request!

  3. sp33dygtx commented on Nov 16, 2022

    @sp33dygtx

    there is karabiner elements but I don't want to go with workarounds for this one

  4. genericptr commented on Feb 23, 2023

    @genericptr

    I used to Sharp Keys to map the keys in Windows but command-W and other defined UTM commands take precedence. I would even be happy if there was a setting to disable host key commands (like those defined in the menu bar) so I could rely on Sharp Keys solely.

  5. michaelfresco commented on May 4, 2023

    @michaelfresco

    This would be a game changer!

  6. razvanphp commented on Sep 6, 2023

    @razvanphp

    Can't upvote this enough!

  7. karol-depka commented on Nov 26, 2023

    @karol-depka

    This seems [relatively] easy to do?
    Parallels has it i think.

    Any progress? :)

  8. karol-depka commented on Nov 26, 2023

    @karol-depka

    Thinking about it, this may interfere with the host keyboard shortcuts...

    Hi. To not interfere with host keys, maybe just a standard subset could be remapped: Cmd+C,V,Z,X,A,F,B,
    standard OS stuff

  9. added this to the Future milestone on Nov 26, 2023
  10. osy commented on Nov 26, 2023

    @osy
    Contributor

    Sure, it should be easy. Feel free to send a PR if you want it to be done quickly. Otherwise just be patient as it's already requested and commenting on it doesn't make it go faster.

  11. karol-depka commented on Nov 26, 2023

    @karol-depka

    Honestly, this is one of the main reasons I'm going back to Parallels. This and the lack of suspending of Win11 VM-s.
    (not to sound grumpy or entitled :) )
    The ROI on the Cmd-Ctrl seems big.

  12. karol-depka commented on Nov 26, 2023

    @karol-depka

    If You point me to a few files, I might try to have a draft pr :).

  13. osy commented on Nov 26, 2023

    @osy
    Contributor

    Sure if we are a $10 billion dollar company who charges $100/year and have thousands of employees, then things would be a lot easier...

    maybe then we'd care about things like "ROI"

  14. karol-depka commented on Nov 26, 2023

    @karol-depka

    Opened in XCode. Poking around ;).

  15. karol-depka commented on Nov 26, 2023

    @karol-depka

    Do You think this would be better handled/patched at qemu level or UTM UI level?

  16. royalgraphx commented on Nov 26, 2023

    @royalgraphx

    what does the UI have to do with how keystrokes are handled? You'd have to patch it where the keystrokes are handled at kwk, this issue/feature is older than a year, last time someone had this issue I simply suggested remapping within the guest, and that worked fine

  17. karol-depka commented on Nov 26, 2023

    @karol-depka

    My setup: I have Capslock remapped to Cmd and I use Karabiner btw.
    I would like that Capslock press to go to UTM's guest as Ctrl, for ultimate "muscle memory" compatibility...
    (Win/Linux guests)

  18. theosp commented on Feb 10, 2024

    @theosp

    Some here might find this comment useful: #5513 (comment) (I arrived to this discussion when searching for: 'command w utm')

  19. joelengelhardt commented on May 21, 2024

    @joelengelhardt

    This would be a great feature! I'm having mental trouble swapping from Mac shortcuts to Windows shortcuts. I keep messing up because my muscle memory is strong!

  20. martinosimani commented on Jun 11, 2024

    @martinosimani

    As a working workaround, you could install PowerToys application, and remap the keys from Window's end.

    1. Install Power Toys application:
      https://github.com/microsoft/PowerToys/releases/

    2. Go to Keyboard Manager in the sidebar and then click Open Settings.

    3. Click Remap a key and set it up as this:

    Screenshot 2024-06-11 at 18 39 04

    Working on Windows 11 Pro ARM64

  21. modified the milestones: Future, v4.7 on Jul 8, 2025
  22. violetstarburst commented on Jul 28, 2025

    @violetstarburst

    I figured out this solution for Windows before discovering this thread, including the excellent powertoys suggestion above. Posting this for folks who might want to have this placed in version control, deployed unattended, or other reasons.

    Create file with .reg suffix, merge it, and logout/reboot.

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
    
    "Scancode Map"=hex:00,00,00,00,00,00,00,00,05,00,00,00,1D,00,5B,E0,1D,E0,5C,E0,5B,E0,1D,00,5C,E0,1D,E0,00,00,00,00
    
    

    The above achieves the thread goal of swap. I don't tend to use the win key on keyboards that don't have it, so this one rebinds left win to left ctrl and right win to right ctrl. Moreover there are some key combo collisions, such as ctrl-M. It minimizes the guest window because cmd-M is bound to minimize in macOS.

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
    
    "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,1D,00,5B,E0,1D,E0,5C,E0,00,00,00,00
    

    Both tested on keyboard without right ctrl key. Particulars gleaned from Lamer87

  23. added a commit that references this issue on Jul 28, 2025
    20d2979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions