added key-handling - currently only printing message