Mechanical keyboards feature a mechanism of springs to press on a physical switch of the keyboard. Membrane keyboards push down rubber domes when I press a key to connect to electrical contacts.