forse volevi dire ....

If Console.ReadKey.Key = System.ConsoleKey.Escape Then
' istruzioni
End If