fix key-map, add capture template