'Check for key movement and hightlight the corresponding
phishing scenario
:param self: A TuiTemplateSelection object
:param number_of_sections: Number of templates
:param key: The char user keying
:type self: TuiTemplateSelection
:type number_of_sections: int
:type key: str
:return: None
:rtype: None'

def key_movement(self, screen, number_of_sections, key):

    if (key == curses.KEY_DOWN):
        if (self.heightlight_number < (number_of_sections - 1)):
            page_number = self.sec_page_map[(self.heightlight_number + 1)]
            if (page_number > self.page_number):
                self.page_number += 1
                screen.erase()
            self.heightlight_number += 1
    elif (key == curses.KEY_UP):
        if (self.heightlight_number > 0):
            page_number = self.sec_page_map[(self.heightlight_number - 1)]
            if (page_number < self.page_number):
                self.page_number -= 1
                screen.erase()
            self.heightlight_number -= 1
