A rubber dome is a piece of silicon rubber placed underneath the keycap that pushes against the membrane of the keyboard. Mechanical switches comprise more moving parts and use a spring mechanism to return back to the original position after a keystroke.