Listening for keystrokes

Hi everyone

How can I listen for keystrokes in ruby. I need to build a program
that switches function if I press 'A'. but continues otherwise. I
am wondering how do I make my program listen for those events.

Ted

···

--
Posted via http://www.ruby-forum.com/.