◄Example► ◄Contents► ◄Index► ◄Back► PROGRAM keyprd; { KEYPRD.PAS illustrates: KeyPressed ReadKey } USES Crt; CONST program_name = 'KEYPRESS '; program_desc = 'uses the Crt function KeyPressed. '; VAR key : Char; BEGIN Writeln( program_name, program_desc ); Writeln; { Display message until key is pressed. } WHILE NOT KeyPressed DO Writeln( 'Press a key, any key.' ); { Use ReadKey to throw key away. } key := ReadKey; END.