the dominant philosophy of keyboard tuning had been to get a certain range of keys passably well in tune and simply not use any other keys, because they were unbearably out of tune. So for centuries, most keyboard music was written in keys between three sharps and three flats. But the unavailable keys were a standing frustration for composers.