error when there is an unnecessary key

I want to make an error when `params` contains an unnecessary key.