During the iPhone’s first 15 years, its keyboard software has evolved, but it still sometimes flubs your lines. Here’s how it works and what you can do about it.