Are you sure its random wasd commands and not random mouse movements.

I found when using keyclone that the "Performance Boost (XP Only)" option caused my mouse to completely freak out randomly when using mouse turn, once I turned that option off I no longer had issues.