View.keyPressEvent View.keyPressEvent(event)[source] Callback for the key press event. Parameters eventPySide2.QtGui.QMouseEventThe Qt event.