2019.10.25 void Level::keyPressEvent(QKeyEvent *event){switch(event->key()){case Qt::Key_A:goingLeft = true;break;case Qt::Key_D:goingRight = true;break;case Qt::Key_W:goingUp = true;break;case Qt::Key_S:goingDown = true;break;default:break;} }