Changed timer set_handler call, added keyboard support (sort of), fixed terminal clearing and added cursor tracking.

Signed-off-by: Campbell Watson <campbell-watson@outlook.com>