There is a thread here that discusses how you can use AecMgrLisp.arx to add some AutoLISP fucntions to work with layer keys.