Extract key mappings in seperate file