ReadKey Method
This documentation is archived and is not being maintained.

Console.ReadKey Method

Obtains the next character or function key pressed by the user.

Name Description
Console.ReadKey () Obtains the next character or function key pressed by the user. The pressed key is displayed in the console window.
Console.ReadKey (Boolean) Obtains the next character or function key pressed by the user. The pressed key is optionally displayed in the console window.
Show:
© 2016 Microsoft