The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
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:

