The command prompt (cmd.exe) has built-in doskey features (doskey was like a TSR that needed to be run from autoexec.bat in the original DOS OS), so most of the doskey features described here (at least those that are applicable to the cursor movement/history editing) are still valid. The previous answers mention most of these, but there are more (e.g., F9 to recall by history number).
There are also couple of more that are not in the doskey help that I accidentally stumbled upon, and I find them extremely useful especially when in the middle of long lines (very common to encounter if you are a developer). These are:
- Ctrl+End: Clear to the end of the line
- Ctrl+Home: Clear to the beginning of the line
E.g., if you want to remove the last two arguments after recalling a past command-line, all you have to do is press Ctrl+Left twice and press Ctrl+End to clear.