It’s actually pretty simple… if you know who to ask. I’ve wasted half an hour searching the Internet for “convert System.Windows.Input.Key to virtual key code” and variations of it, without apparent results.
Turns out, M$ thought of everything: KeyInterop.VirtualKeyFromKey converts a WPF Key into a Win32 Virtual-Key.
Wanna know how I found out? Github Copilot. That’s why I personally think of chatbots as the better alternative to search engines when talking about situational, contextual and/or obscure topics.