Hive: HKEY_LOCAL_MACHINE Key: System\CurrentControlSet\Services\Kbdclass\Parameters Name: KeyboardDataQueueSize Type: REG_DWORD
The default is 0x64. Don't make it too large. Try doubling it.