Add some commands that hopefully help when the Hand gets stuck.
Add ncurses dependency.
Refactored to use ncurses for I/O.