Added support for modifier keys in mouse events.