Expand folder with keyboard?

I think use the script expand-folders-command may have more options,
for example,expandfolders toggle=expandtopCommands can quickly switch between expanded and collapsed states