fixed #1 not alerting when KEY is left unset.