Read config file with key codes