% ruby keypress_check.rb % echo -n y | ruby keypress_check.rb y