Hello Friends

How to get event/notification for any key press or screen is touched in Non UI application.

Please suggest some links or piece of code.