Add support for plain key.txt file