I think this has more to do with your operating system, not Obsidian.
Some apps I use on MacOS to control the keyboard are, Hammerspoon, Karabiner Elements, and Better Touch Tool (less so).
Karabiner Elements is very useful for keyboard customization. And Hammerspoon is extremely powerful, but takes a bit of scripting in Lua.
I don’t know if they can do what you said, specifically. But it’s a decent bet to look into.
Your other option is learning and using Vim bindings. But I know that doesn’t appeal to everyone.