a small simple magnet can be used to activate a reed switch. They can be of the normally open or normally closed type...ie activate when the magnet is brought near or activate when the magnet is removed. Reed switches...a common very small silent componet even available in a plastic bubble pack at radio shack. Been used to activate bombs etc for years.