I am implementing my own version of PSHostRawUserInterface. I'd like to implement PSHostRawUserInterface.ReadKey(), and therefore I need to map System.Management.Automation.Host.KeyInfo.VirtualKeyCode to System.ConsoleKeyInfo.Key.
I can cast System.ConsoleKeyInfo.Key to an int, I just don't know if that's actually the VirtualKeyCode.