I started having a similar glitch while typing using SwiftKey keyboard. The prediction feature identifies previous word or first word of previous paragraph and tries to finish it although the marker is in a new space or line. It gets impossible to write like this and I have to change apps to finish the task. My os is android 6.0 installed in a Moto G3. What can I do to fix this? Thanks in advance.