work on key assignment