handle JRuby input with #getch and other input with stty raw