QKeyEvent

class PyQt5.QtGui.QKeyEvent

C++ documentation