Proper key assignment