implement text field listener in console