Revert "Modified the way key-modifiers are handled"

This reverts commit a60c16dddbc8b9170ebc6e4c3e72614e5314180d.

Reverted because javascript key-modifiers doesn't work good enough