When hitting tab, it handles if single or double tab

def handle_keypress(self):
        """When hitting tab, it handles if single or double tab"""
        if self.numpress == 2:
            self.sig_double_tab_pressed.emit(True)
        self.numpress = 0