Wireless sensor networks pose new security and privacy challenges. One of the important challenges is how to bootstrap secure communications among nodes. Several key management schemes have been proposed. However, they either cannot offer strong resilience against node capture attacks, or requires too much memory for achieving the desired connectivity. In this paper, we propose a LOcation dependent Connectivity guarantee Key management scheme for heterogeneous wireless sensor networks (LOCK) without using deployment knowledge. In our scheme, a target field is divided into hexagon clusters using a new clustering scheme crafted out of nodes’s heterogeneity. Even without using deployment knowledge, we drastically reduce the number of keys to be stored at each node. A pair-wise, group wise and cluster key can be generated efficiently for among nodes. LOCK provides dynamicity by two ways; one by not completely depending upon pre deployed information and other by not completely depending upon location. Compared with existing schemes, our scheme achieves a higher connectivity with a much lower memory requirement. It also outperforms other schemes in terms of resilience against node capture and node replication attacks. Scheme is proved to support largest possible network using smallest storage overhead as compared to existing key management schemes.