When it is perfectly in tune for one key, it will be slightly out of tune for other keys. Tuning involves a compromise that will be acceptable for as wide a range of keys as possible. This is the reason behind the tempered tuning method for pianos.