''

def _key_pressed(self):

    key = self.tips.key_pressed
    if (((key == Qt.Key_Right) or (key == Qt.Key_Down) or (key == Qt.Key_PageDown)) and (self.step_current != (self.steps - 1))):
        self.next_step()
    elif (((key == Qt.Key_Left) or (key == Qt.Key_Up) or (key == Qt.Key_PageUp)) and (self.step_current != 0)):
        self.previous_step()
    elif (key == Qt.Key_Escape):
        self.close_tour()
    elif ((key == Qt.Key_Home) and (self.step_current != 0)):
        self.first_step()
    elif ((key == Qt.Key_End) and (self.step_current != (self.steps - 1))):
        self.last_step()
    elif (key == Qt.Key_Menu):
        pos = self.tips.label_current.pos()
        self.tips.context_menu_requested(pos)
