Select pairs in restricted area
Change mask and key selection