Scratching an itch is far more common than itching a scratch. Both are grammatically correct, but the latter is considered informal. This is part of a complete episode.