I’m having the same, or similar, issue.
When using my WASD keys to move, F to interact, or numbers to attack, my keyboard sometimes seems to completely “cut off” and not respond – although I can still move and interact with my mouse (so it’s not lag related).
This only happens in GW2, and on a Logitech K260 Wireless keyboard (with brand new batteries, tested).
Any ideas?