if (from.CheckSkill(SkillName.Tinkering, -5.0, 15.0))
{
from.SendLocalizedMessage(500636); // Your tinker skill was sufficient to make the item lockable.
Key key = new Key(KeyType.Copper, Key.RandomValue());
KeyValue = key.KeyValue;
DropItem(key);