add keymap function generation script