I as well signed up to this forum just to thank you for the solution. Clearing the keyboard app data in applications solved my problem. I would be in mid-text and suddeny it would freeze, then ten seconds later, it would exit to the main desktop. Very annoying. I was ready to do a factory reset...