New function to the lock editor: Create Key.