Implemented updating of keydef file