I\'ve found this answer which look like what I need:
How can I programmatically generate keypress events in C#?
Except for the fact I can\'t create an insta
Similar to Bill Tarbell's answer, you can also create a dummy System.Windows.Interop.HwndSource, like so:
var kea = new KeyEventArgs( Keyboard.PrimaryDevice, new HwndSource(0, 0, 0, 0, 0, "", IntPtr.Zero), // dummy source 0, key);