

Determine if a key has been pressed and store this in a variable.

If no key has been pressed, the program should continue without waiting.




Ch : Character;
Available : Boolean;
 
Ada.Text_IO.Get_Immediate (Ch, Available);