I have seen this not only on the keyboard from Samsung but as well as other apps I have running such as AC Forums, the Weather Channel and a few others.
I've remedied the situation by clearing cache and data doing a force stop and then restarting the S5. I've also installed All-In-One Toolbox and run the One Key Clean once a day.
Sent from my SAMSUNG-SM-G900A using AC Forums mobile app