improve addkey action