Update key.php

Making sure that if an application key has already been set that it is not overridden.