Changing var to val for keySet in OpenHashMaps