How keys are counted
Your score is the number of keys you pressed to finish the edit. Here's exactly what counts.
Every key you press in the editor counts once. That includes Esc, Enter, Backspace and the arrow keys. If you leave Insert mode with jk or jj, the pair counts as one key, like Esc.
Text you type counts one key per character, spaces included. Typing final is five keys.
Shift doesn't count on its own. A capital A is one key, and so is $.
A Ctrl combination, like Ctrl-v or Ctrl-a, is one key.
A count is one key per digit. 3dd is three keys, and 12j is three as well.
In a search or a : command, every character you type counts, and so does Enter. A search for name is six keys.
What doesn't count
Clicks don't count. When you start an edit over, the count goes back to zero, so only the attempt you finish is counted.
Par
Par is a clean route using what you've learned so far. It's the route someone fluent in Vim would type, never a trick. Every route is played in the same editor before the site goes live, so par is always possible.
Matching par is a full success. If you find a shorter way, that's a bonus. You still get gold, and the result says how many keys under par you were. You don't have to find one.
Puzzles are different. Their par is the fewest keys, and tricks are welcome.
Medals
In practice, you get gold at par or better, silver within two keys of par, and bronze for finishing.
If you want more detail, read How the analyser finds a shorter route.