title: Ruby Keyboard event handling
body: <p>I'm using curses to develop a small console application.</p>
  <p>I have a main loop section which waits for user input, it uses the getstr function, of course this waits for the user to press enter.</p>
  <p>I would like to capture the up and down and tab keypresses. I suppose this can't be done with getstr.</p>
  <p>Anyone have any idea how to do this?</p>
  <p>EDIT: I've tried using STDIN.getc wihch blocks the application from running, and getch doesn't catch the arrow keys.</p>
  <p>EDIT #2: I'm trying this code on Windows. It seems that Curses.getch works for Linux, but on Windows I get no key sent for the up arrow.</p>