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
var kea = new KeyEventArgs( Keyboard.PrimaryDevice, new HwndSource(0, 0, 0, 0, 0, "", IntPtr.Zero), 0, Key.Enter) { RoutedEvent = UIElement.KeyUpEvent };