Reimplement mouse input without using Curses.getch