public void removeUserAction(UserAction action) {
   Vector userEvents = action.getUserEvents();
   for (Iterator iterator = userEvents.iterator(); iterator.hasNext(); ) {
     UserEvent userEvent = (UserEvent) iterator.next();
     if (action.mustStartAndStop()) {
       if (userEvent.isMouseActivated()) {
         if (userEvent.isMouseWheelEvent()) {
           mouseWheelEvents.removeElement(userEvent);
         } else {
           mousePressedEvents.removeElement(userEvent);
           mouseReleasedEvents.removeElement(userEvent);
         }
       } else {
         keyPressedEvents.removeElement(userEvent);
         keyReleasedEvents.removeElement(userEvent);
       }
     } else {
       if (userEvent.isMouseActivated()) {
         if (userEvent.isMouseWheelEvent()) {
           mouseWheelEvents.removeElement(userEvent);
         } else {
           mousePressedEvents.removeElement(userEvent);
         }
       } else {
         keyPressedEvents.removeElement(userEvent);
       }
     }
   }
 }