moveKey(): fix a copy-paste bug that was already present before refactoring