I do not support this, but something to be learned:
Control + Shift + 5 is a keyboard shortcut that opens and closes a ribbon.
Presumably there should be some kind of event or function associated with this shortcut, so if you can dig around and find it, you can try calling the code directly.
Or you can try to simulate a keystroke - Dismissing keyboard events in JavaScript .
source share