Add gesture recognition implementation