A. Try using a different keyboard app that may perform better. Go to Settings > Language & Input > Current Keyboard and select a different option. B. Close other apps running in the background to free up memory, which may help reduce typing lag.