I think you forgot to account for people using wasd and arrow keys at the same time... (try holding d and left arrow at the same time to see what I mean xd)
it can also mess with aiming