Fixed the keyboard being able to be dismissed sometimes and not appearing other times.