Changing the CD key will result in the premium modules (like Kingmaker) not working anymore, because they will use the default key for validation. To get around this, go to your My Account page and find the 'premium modules re-installer', under the game's additional content. Download this file and install it. The modules will now be adapted to the new CD keys.