Fix bad event modifiers recognition