finishing the key CLI