handle mod keys (ctrl, alt, shift)