I have only been able to do this with Dragon Naturally Speaking (although there may be others that work), and I believe it requires the "Professional" version to get keystroke commands to work. Learning how to program keystrokes is not very intuitive, either, but it's there. They have frequent sales of 50% off the list price, so I purchased for USD $150. It was a little tricky to get to work correctly, but when it's working, it's pretty amazing!
I tried to get keystroke combinations to work with the Win10 voice recognition, but couldn't find any way to do this very easily, so I gave up and went with DNS. I find that it works really well with adding text notes, too.
Richard
--------------------------
Richard Morrison, Architect-Interior Designer
AC26 (since AC6.0), Win10