RosettaCodeData/Task/Keyboard-input-Keypress-check/PowerShell/keyboard-input-keypress-check.ps1
2026-04-30 12:34:36 -04:00

3 lines
73 B
PowerShell

if ($Host.UI.RawUI.KeyAvailable) {
$key = $Host.UI.RawUI.ReadKey()
}