dont reparse the config file when the keyboard map changes. just rebind everything...