Update Curses.#getch and Curses::Window#getch. (see #8131)