How Kentucky gun laws compare to Illinois

After the Highland Park mass shooting, some questioned how the shooter was able to legally buy firearms. How do Kentucky gun laws compare to those in Illinois?