It doesn't sound like purely a latency issue, it could be a combination of latency and something in your key settings.
Basically holding down a key, or that key getting 'stuck' which the latency is translating that into, shouldn't result it that key being spammed repeatedly, it should be able to recognise the different between rapid presses and holding it down.