How to bind hotkeys for new layer and new sublayer with random color

Did you see that topic: