433Mhz RF encoder RXB6 with 4 channels relay

Hi, I want to modify a push button home standing fan into a wireless Arduino Leonardo control by remote control.

The remote control is
https://www.amazon.com/BQLZR-Wireless-Learning-Receiver-Key-ring/dp/B06X9NC41R/ref=sr_1_21?s=hi&ie=UTF8&qid=1505236420&sr=1-21&keywords=433mhz+rf+4ch+Remote+Control\

The RXB6 receiver is

The remote control has these saved different codes in each button A,B,C and D.
Remote Control Button A send: 111100001111000011110000
Remote Control Button B send: 111100001111000011110001
Remote Control Button C send: 111100001111000011110010
Remote Control Button D send: 111100001111000011110011

Press button A switch off all relays and delay on Relay A after 0.5 seconds.
Press button B switch off all relays and delay on Relay B after 0.5 seconds.
Press button C switch off all relays and delay on Relay C after 0.5 seconds.
Press button D switch off all relays A, B and C.

I had tried to searched everywhere but cannot find anywhere for guidance.
Please help.

Is there anyway to make Arduino Leonardo goes into sleep mode when button D is pressed and not used after 1 minute later?
And will wake up when any button is pressed.