Default keyboard lag

for some reason i am noticing keyboard lag with the google keyboard all of a sudden. even when i tried installing and using swiftkey, same thing. It lags when i type making it appear sluggish. And it happens in all apps not just sms. any ideas how to fix this?