Based on an actual game, (see below) your goal is the line up the colors of the tiles outside of the 2x2 grid to the ones inside! You also want to do it as fast as possible. For the (blue and yellow)/(green and red) tile, you use "w" or "s" to flip the tiles, "d" to rotate clockwise and "a" to rotate anti-clockwise. For the (blue and red)/(yellow and green) tile, you use the up arrow or the down arrow to flip the tile, right arrow to move it clockwise and the left arrow to move anti-clockwise. I this remix, I've added a black dot to the tile I work with my left hand so I can keep track of where it is. (I'm not as good at this as it's creator.)
You can see instructions and images of the game at https://www.character-online.com/Content/Images/uploaded/Manuals/25250_S04_FSS1_Game_IM_FA_FINAL.pdf I found it helpful.