Schoolboy Alexander Wiltshire won an iPad after finding all 52 golden keys placed in Chippenham shop windows – despite one being accidentally sold.
The Friends of Chippen-ham Museum and Heritage Centre put the keys in the front windows of shops and businesses before Christmas.
The public were asked to find them and note their locations to enter a prize draw.
But there was a hitch when a charity shop mistakenly sold its golden key.
However, nine-year-old Alexander, of Brewers Close, Chippenham, still managed to spot the lot.
He was picked to win from more than 200 entries by volunteer Peggy Burgess.