Happened to me for the first time a short while ago. Two things that were happening at that time - no idea if either is related:
1. Sort started to open my keyboard and then closed it
2. battery had just about hit the magic 30% number where power manager switches to a low power profile.
After the reboot, seems to be working fine.