Fixed input_read()
Fixed key_counter

Fixed key_counter but still need to add correct print statements to
complete it.