I doubt you are doing anything wrong.
The program has to simulate the user pressing some keys (the "y" key
is in there a few times), in order to set the track information to be
the way you want (e.g. "skip when shuffling" = "yes"). Apparently
this isn't working correctly on your computer.
What version of iTunes are you running?