Using a free open-source software program
How to Remap Keys on ANY KEYBOARD | Windows 10/11
There are a few reasons why you might want to remap keys on Windows 10: the layout might feel wrong, or the keys might be broken. Unfortunately, Windows doesn’t let you remap keys directly. You can remap them by editing the registry yourself, which we don’t recommend doing, or by using third-party software.
One of the easiest keymapping software to use on Windows is SharpKeys. This free and open-source software lets you map one or more keys to another key, although it only supports keyboard keys as it does not support mouse or touchpad keys. Here's how to remap keys on Windows 10 with SharpKeys.
A Windows installer for SharpKeys is available on the SharpKeys GitHub repository, as well as a portable version you can download for use on flash storage drives to take your SharpKeys installation with you. SharpKeys is open source, so you can choose to download the source code and compile it yourself if you wish.