GUI creates key and lock