ui/ncurses: implement global keys