don't capture keydowns if modifier key is active

If a modifier key is active while a keyboard event is about to get captured...bypass it.

References #2368