From: Phanixis Date: 2004-09-06T13:40:11+09:00 Subject: Re: Problem Having Ruby Wait for a User Input Is just want a single keystroke. The operating system I am using is Windows XP, but that should not have anything to do with the problem. The code that I list is well capable of registering a key stroke. If a key is being press, and the method I list is invoked, it will register the key press(provided it is one of the keys its designed for). It is not so much the registering of the key stroke a need, as the WAIT UNTIL a key is pressed. I want to take the existing code a created, and make it sit there and wait for a key stroke. Ordinarily, I would do this simply by placing the code inside a while loop, and once the code registered a key input, it would change a variable and terminate the while loop. But for whatever reason, once nested in the loop, the method ceases to register key strokes.