The keys can be boolean attributes that start false and are set to true when the keys are collected. You can either stop creating the keys in their respective scenes after they are collected, or (if they are placed in the scene designer) you can kill the key actors each time you enter the scene after the keys are collected. For the timer, it's just a number attribute that counts down. Make one for each set of scenes in a level.