Another issue at head is that Curses.getch still returns int.
Problem is that when keypad is set it returns pseudokeycodes, so we have
to convert only when <256.
And little quiz: How do you recognize that user pressed M-x ?
Curses.getch==?\M-x ?
wrong.
=Curses.getch==?\e && Curses.getch==?x