

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.




 
begin
  check = STDIN.read_nonblock(1)
rescue IO::WaitReadable
  check = false
end
 
puts check if check
 