Dont use `const Key&key`, just use `Key &key`, because key is a numeric type.