Make KEY_ work for keys not defined in curses