Have you tried restarting the device? Often that will fix the issue.
Also you should make sure the phone is completely up to date. Check Google Play for any keyboard updates.
Lastly I would make sure not so much is running at the same time. This will cause the tablet to freeze up.