if ($Host.UI.RawUI.KeyAvailable) { $key = $Host.UI.RawUI.ReadKey() }