It probably would of been somewhat helpful if you mentioned what keyboard you are using.
As mentioned, most all keyboards have media keys.
Alternatively you could try
Scancode Map.
Scancode Map does not run in the background. It's a tool used to create and apply keyboard remappings, but it doesn't require continuous background operation. It's often used to modify the registry, and the changes are permanent until manually reverted, so it's not a running service.
Here's a more detailed explanation:
- Scancode Map as a Tool:
Scancode Map is a utility that helps users remap keyboard keys by modifying the registry.
- Remapping is Permanent:
Once the remappings are applied through Scancode Map, they are usually permanent and will remain active unless they are manually removed or reverted.
- No Background Operation:
Unlike tools like Microsoft PowerToys, which require background operation to apply keyboard remappings, Scancode Map doesn't need to be running in the background for its changes to take effect.
- Registry Modification:
Scancode Map works by directly modifying the Windows registry, which stores system configuration settings, including keyboard mappings.
I made this tutorial to show how to use Scancode Map to disable the CapsLock key, but it should give you the general idea.
You can infact assign Media Keys with Scancode Map.
What I am not aware of (I am not at my PC) is if Scancode Map also allows you to assign the key you change to work with the Function Key, meaning if you change a particular key to Volume Up/Down, that key will, from then on, only function as the Volume Up/Down key. At least until you remove the mapping.
After installing
Scancode Map
- Click on Add

- In the From Scroll down to Caps Lock