Detect key repeats