Better listener for text fields

Listener updates enteredText and enteredKey after each character
entered, changed or removed in the text Fields, and disables/enables
the buttons if appropriate.