How to see which key was pressed with LV_EVENT_KEY event

Hi ccrome,

Could you just tell me how to write a call back function to retrieve the LV_KEY. I am facing the difficulty to retrieve the keys. Below is my code for your reference

void event_handler(lv_obj_t * obj, lv_event_t event)    {
if(event == LV_EVENT_KEY){
	uint32_t * key = lv_event_get_data();

	if (* key == LV_KEY_HOME)
	{
		lv_label_set_text(label_time,"LV_KEY_HOME");
		*key = 0;
	}
  }
}

lv_obj_set_event_cb(list_btn, event_handler);