Yes exactly the same implementation.
void keyPressEvent(QKeyEvent *event):

->We get the other keys except the above list.