Question: how many keystrokes between 1 to 500?
Answer: Each of these numbers requires 3 keystrokes. Therefore, one requires 2700 keystrokes to type these 3 digit numbers. Then 1000 is a four-digit number which requires 4 keystrokes. Totally, therefore, one requires 9+180+2700+4= 2893 keystrokes.