getHashMapKeys functionality implemented