Skip to content

Instantly share code, notes, and snippets.

@DerekZiemba
Last active February 19, 2025 18:46
Show Gist options
  • Save DerekZiemba/2139e0238aafb09972bc38cbfcb7a55f to your computer and use it in GitHub Desktop.
Save DerekZiemba/2139e0238aafb09972bc38cbfcb7a55f to your computer and use it in GitHub Desktop.
Assign Corsair K95 Keyboard G1-G6 keys to F13-F18, and have it work without needing iCUE
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
; 8 bytes that are always 00 00 00 00 00 00 00 00 (as is required)
"Scancode Map"=hex:00,00,00,00,00,00,00,00,\
07,00,00,00,\ ; +4 bytes that are used for the count nn 00 00 00 (as is required)
\ ; +4 bytes per mapping (BigEndian / reverse order)
64,00,73,00,\ ; Intl'1(00_73) --> F13(00_64)
65,00,70,00,\ ; Intl'2(00_70) --> F14(00_65) (Katakana / Hiragana)
66,00,7d,00,\ ; Intl'3(00_7d) --> F15(00_66) (Yen)
67,00,79,00,\ ; Intl'4(00_79) --> F16(00_67) (Henkan)
68,00,7b,00,\ ; Intl'5(00_7b) --> F17(00_68) (Muhenkan)
69,00,56,00,\ ; ISO_EXTRA_KEY(00_56) --> F18(00_69) (Ro) aka "Non-US \ and |"
00,00,00,00 ;+ 4 bytes end padding 00 00 00 00 (as is required)
@DerekZiemba
Copy link
Author

DerekZiemba commented Feb 19, 2025

Corsair's terrible iCUE software doesn't allow binding the G-Keys to F13-F18 unless iCUE is running. Here's how to get around that.
To assign Corsair K95 G1-G6 keys to F13-F18 you will only need iCUE to initially program the keyboard.
After the keyboard keys are assigned/programmed, you can uninstall iCUE and all the crap it comes with.

Using iCUE, assign G1-G6 to the following "Lang Keys" as pictured below.

  • G1 = Intl`1
  • G2 = Intl`2 (Katakana / Hiragana)
  • G3 = Intl`3 (Yen)
  • G4 = Intl`4 (Henkan)
  • G5 = Intl`5 (Muhenkan)
  • G6 = None-US \ and |

NOTE:
I used SharpKeys to figure out the actual scancodes (if you wanna use different keys, see: https://github.com/randyrants/sharpkeys). Most of the Lang Keys generate no scancode or actually do something, so only the ones I've chosen & like 2 others actually work.
Then looked into its source code to figure out how it works.
Finally I distilled only what I need to the above registry file.

image

Once the keys are programmed into the keyboard:

  • Save K95 Keyboard F13-F18 Scancode Map.reg file anywhere and run it.
  • Since we modified a SYSTEM key, you'll need to Reboot the PC.
    • May as well uninstall iCUE now as it'll ask to reboot after uninstalling.
    • Alternatively, disable iCUE from starting up & use System Informer to easily disable the services (in case you need iCUE again in the future)
      image
  • You will now have working F13-F18 keys corresponding to G1-G6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment