Welcome to Android Central! Does it persist after a reboot? If so, go to Settings>Apps>All, select LG Keyboard (or whatever it's called), and Clear Cache, then try again. If that doesn't work, you could try Clear Data as well, but be aware that this might clear out any personal dictionary you've built up.