add key command and add subcommand