Catch KeyError on Curses