Welcome to the RetroFE forums
That sounds like a Windows issue, where you wish to start a certain program based on a key press. If you wish to do it from within RetroFE, just create a shutdown button and a batch script that does the shutdown (see attached example).
Hot key handling shouldn't be in RetroFE; you should do that within Windows. If you want it within RetroFE, just make it a selectable game (on the main menu), just like all the others.
don't allow attract mode to run through collections at all.how i do that ? whice paramater in setting file i need to delete