Vanilla JavaScript Tetris: move and rotate not working

Hello all,
am learning JavaScript by doing a tetris project.

Unfortunately got stuck when it comes to movement and rotation used together. Maybe you guys could help me out with this?

stackoverflow question number: 61338995

OK, got it. If someone is interested, please put the question number in the search bar of StackOverflow