Hi Eric, the aluminium ball together with (at least) two nails acts like a switch, connecting a single pin of the Bluetooth module to ground. Each corner of the octahedron (and therefore each side of the cube) has one such switch, i.e. the cube sends one key per side.