keysym = Keysyms.Alt_R;
else
keysym = Keysyms.Alt_L;  break;
case KeyEvent.VK_SHIFT:
if (down)
<BUG>modifiers |= Event.SHIFT_MASK;
</BUG>
else
<BUG>modifiers &= ~Event.SHIFT_MASK;
</BUG>
if (location == KeyEvent.KEY_LOCATION_RIGHT)

keysym = Keysyms.Alt_R;
else
keysym = Keysyms.Alt_L;  break;
case KeyEvent.VK_SHIFT:
if (down)
modifiers |= (Event.SHIFT_MASK<<locationShift);
else
modifiers &= ~(Event.SHIFT_MASK<<locationShift);
if (location == KeyEvent.KEY_LOCATION_RIGHT)
