TextField will call `action` when the enter key is pressed.