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.

Community Additions

ADD
Show: