Update ui_act.c

Added support for sending event on pause/play.