I've unplugged my keyboard while the latency was making those annoying popping sounds. After I've heard the sound of the USB unplugging (which was very delayed by the way), the popping stopped. But when I was about to plug it in again, I think I've heard another pop. I might have to try this more to see if unplugging the keyboard is really affecting the latency, even for a few seconds. I've also tried to change my keyboard after that, with another usb mechanical keyboard (both keyboards have 2 usb plugs, because they have a port on the side in which you can plug in your mouse), but even with the other keyboard I've had latency problems.