keymanager working