codice:
If Console.ReadKey.Key = System.ConsoleKey.Esc Then
    'istruzioni
End If
P.S.: ma dare un'occhiata alla MSDN no, eh?