Clue: Part of entrance security vital to flat (6)
Answer: KEYPAD
Explanation: Definition: Part of entrance security
A charade of KEY ('vital') plus PAD (apartment, 'flat').