The black-and-white pattern of piano keys is more than a design choice. It reflects musical intervals, mathematical patterns and centuries of keyboard history.