Recognize various gestures and perform specified operations