MCE Power Button to Only turn TV on and off with CEC



Is it possible to remap my power button on my MCE remote to send the CEC command to turn my TV on and off without turning the pi off also? I know how to remap keys in kodi. But I dont know what function to use for the CEC. I also need to make sure the pi ignores the standby signal from the tv as it shuts down