checking that key files are in fact key files