Before you make the key, study the lock.