You can do this with custom key mappings on all major operating systems. Basically you can open a program, open a folder, run a script or do anything you can run from the command line (including running multi-step operations).
On Windows there's AutoHotkey. It sounds like it might be complicated but it's not. For example this single line of code `#+w::Run chrome.exe -incognito` lets me press Win + shift + w to open an incognito Chrome window and `#n::Run, explorer.exe \\wsl$\Ubuntu-20.04\home\nick\src\sites\nickjanetakis` opens my personal blog's directory inside of an Explorer window (default folder viewing app) with Win + n. I wrote a blog post[0] about using the basics of AutoHotkey and there's similar tools for Linux and macOS at least in the sense of being able to assign any action to a hotkey.
[0]: https://nickjanetakis.com/blog/remap-and-set-global-hotkeys-...