Library for processing keyboard entry from the terminal