I am running Cyanogenmod 10.1.3 on my Samsung Galaxy SII (GT-I9100), and starting yesterday my keyboard continuously crashes with the following message:
Unfortunately, Android keyboard (AOSP) has stopped.
This message pops up very 10 seconds or so even when I am not trying to type. I thought it might have something to do with my recent install of the DU Speed Booster app. But after uninstalling it I still get the same problem.
This is very serious, as my phone is rendered almost completely unusable since I can't enter any text, and message keeps popping up preventing me from even doing things that only require touch.
Solution
Go to System Settings > Apps > click Android keyboard (AOSP). Clear Data. Clear Cache.
Links