small class for entering text with the keyboard