Fixed key press counting.