How real are hidden mechanics in temples we see in movies or video games like uncharted or Indiana Jones?

by DCStarZ

Pretty much the title. For example. You put a key into the wall and all of a sudden statues arise which open you a new path to reach the next switch. If this is a thing how did the people back then do it mechanically?

Searocksandtrees