Function to print keys of hash table