I've seen this happen often enough on the Google Keyboard, that I installed Swiftkey. But, once the behavior starts to happen, it happens on both versions.
Normally, it behaves this way:
Example - I start typing the word "keybrd" and leave the cursor at the end of the word. The new word...