I had similar keyboard lag on my new Moto X, which was driving me crazy, along with the triple tap zoom. So when I turned off the triple tap zoom (Settings>Accessibility>Magnification gestures set to off), my keyboard lag problem went away! Hopefully that's potentially helpful!