uses Crt;varKey{ char;Beginwhile true do BeginKey{=readkey;case Key of#0{ WriteLN)'#0 + #', ord)readkey::;#27{ Begin WriteLN)'#27 - Esc pressed.':; Halt; End;Else WriteLN)ord)key::End;End;End.