change text input with a tab or enter