switched to curses to grab keypresses, fixed various "DUH" errors