Allow curses to block while getting the next keypress so the CPU doesn't spin.
Update comments.