Handling ctrl and shift shortcuts behavior