Console::ReadKey Method
.NET Framework (current version)
Obtains the next character or function key pressed by the user.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ReadKey() | Obtains the next character or function key pressed by the user. The pressed key is displayed in the console window. |
![]() ![]() | ReadKey(Boolean) | Obtains the next character or function key pressed by the user. The pressed key is optionally displayed in the console window. |
Show:

