read key from file