If it is a web application, then you need to put the key in the web.config (under AppSettings) node.
All the class libraries used in web application will have access to web.config keys.
For ConfigurationManager, you will need to add a reference manually and also add a namespace
using System.Configuration;
Hope that helps
Milind