Fix key export, add export all keys feature.