This invention discloses a process for forming durable anti-stiction surfaces on micromachined structures while they are still in wafer form. The input sheet has various types of keys formed thereon. Meanwhile, the top structure is configured to shield EMI noises as well.