You don't need to record anything, it's standard: it's just EV_KEY:KEY_POWER (the SleepCover has a few different less obvious key codes depending on devices, though, not that it matters here), so just push a properly setup evdev `struct input_event`.
But that doesn't matter if you're not running Nickel (or, whatever), as there'll be nothing to actually handle that input event

.