Anders Tornblad

All about the code

Keep NumLock on permanently

One of the remnants of early PC computers is the Num Lock key. For most people, like me, it is just a nuisance. I mostly use my laptop with a dock connected to a standard 102 key keyboard, so when I use the numpad, I want numbers to appear – I don't want the cursor to move semi-randomly across my document. When I sometimes hit the Num Lock key by accident, I'm always in for a few seconds of feeling annoyed.

I'm not the only one thinking this. A quick search for keep num lock key on permanently windows 10 gives hundreds of results, but most answers focus on making it turn on at reboot. I could only find one good answer to the actual question.

If you have the same problem, try importing this in Regedit (run as administrator):

Windows Registry Editor Version 5.00 [HKEY_USERS\.DEFAULT\Control Panel\Keyboard] "InitialKeyboardIndicators"="2147483650" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,45,00,00,00,00,00

This will fix two things:

  • The first setting makes Num Lock turned on by default at reboot
  • The second setting disables the Num Lock key (key code 45) completely so that its signals don't reach the operating system correctly


Use this tip on your own risk. Don't forget to backup your registry before doing this. Changing things in RegEdit is always risky and in no event will I be liable for any loss or damage arising from the use of this information.

Add a comment


  • Gravatar Ed Love wrote :

    Nice idea, but hasn't worked with w8.1 :(

    • Gravatar ATornblad wrote :

      On some computers this will not work, unfortunately. It depends on the internal layout of the keyboard.

  • Gravatar G wrote :

    IT WORKS!!! Thanks, Anders! Finally I got rid of this annoyance.

  • Gravatar Ango Radus wrote :

    Thanks a million, the only solution that actually works!

  • Gravatar Dejan wrote :

    It doesn't work on my Win10, but then again neither did sharpkeys - do you have an idea as to why?
    (I have full administrator rights and I run the apps as admin.)

  • Gravatar Robert Kenyon wrote :

    Thank you so much!

  • Gravatar ATornblad wrote :

    Apparently, this is no longer an issue with Windows 10! The latest "Creators Update" remembers the state between logins and reboots.

  • Gravatar Tom Speer wrote :

    Win 10 Creators Edition may remember the state, but it still doesn't fix the problem of inadvertently turning it off. I never want numlock off, so I like your solution.

  • Gravatar Tom wrote :

    This is it... I've been looking for this for years.
    Next Windows feature: make this automatic. What kind of keyboard has a NumPad but not arrows?

  • Gravatar ANKAJU wrote :

    I can report that it works w Windows 10 (as of 20/05/2018 updated version).
    If you do it manually, please remember to create a binary option for the 2nd entry. The Type got to be "REG_BINARY" and the entry Data got to be 00 00 00 etc.