I've had success in the past in customizing macOS key bindings using Karabiner: https://karabiner-elements.pqrs.org/
```
{
"description": "Caps Lock to Option+Space (Handy push-to-talk)",
"manipulators": [
{
"from": { "key_code": "caps_lock" },
"to": [
{
"key_code": "spacebar",
"modifiers": ["left_option"]
}
],
"type": "basic"
}
]
}
```