event emiter for key class