You should filter on the target based on element type, so you don't trigger based on an input/textarea field.