Capturing a Raw Event

How to capture an event like (Ph_EV_BUT_PRESS)?could anybody give an example using a Raw Event callback?

thanks