QueueGameViewInputEvent not triggering movement

I created a menu item which executes a function to trigger a new KeyEvent in The GameView, however when I execute it I’m not seeing any movement in the Game View like when I use the keyboard control.

var e = new Event { keyCode = KeyCode.UpArrow, type = EventType.KeyDown };
EditorGUIUtility.QueueGameViewInputEvent (e);

What am I missing? I also tried sending a KeyUp after, I tried putting a Threading.Sleep(1000), in between the down and up events but I"m still not seeing anything happen.

Ok so it looks like this method only works when executed in the context of a GameObject. I’m guessing the UI and Game are on different threads so the message never actually gets queued when executed from the UI context of Unity.