Prevent for both keydown and change events process

Check that keydown and change event prevented only on the same element. It fixes bug, that can be reproduced this way:
1. Create filter for to field, one filter must be text input, other must be checkbox
2. Open any version of Firefox
3. Input text for search in text field end press Enter. At this moment this script will set variable eventType to 'keydown'
4. Click on checkbox. Filter won't run, because eventType is 'keydown', even though change event called by another element. Nothing happens.