A. Try restarting the app to see if the keyboard glitch resolves itself. Close the app completely and reopen it to refresh the interface.
B. If the issue persists, consider using a different keyboard app. Go to Settings > Language & Input > Current Keyboard and select a different keyboard to see if that resolves the spacing issue.