I had this problem yesterday and found a load of forum posts and blog posts that give various answers. However, not one had the definitive answers, so I wrote a detailed post at http://www.thedesignguys.co.uk/keyboard-lag-slow-typing-solution which gives you a step by step fix. Hope this helps...