Changed GetTrigger to GetTriggerState to avoid conflict