Improve <enter> handling for inputs.