Edited to make it so that if you remove a previous key, it will allow you to enter a replacement