@Override
        public void keyPressed(KeyEvent e) {
            if (e.getKeyCode() == KeyEvent.VK_LEFT) board.getBoard().moveShapeToLeft();
            if (e.getKeyCode() == KeyEvent.VK_RIGHT) board.getBoard().moveShapeToRight();
            if (e.getKeyCode() == KeyEvent.VK_UP) board.getBoard().rotateShapeAntiClockwise();
            if (e.getKeyCode() == KeyEvent.VK_DOWN) board.getBoard().rotateShapeClockwise();
            if (e.getKeyCode() == KeyEvent.VK_SPACE) {
                while (board.getBoard().movingShapeCanMoveDown()) {
                    board.tick();
                }
            }

            board.repaintBoard();
        }