You can rotate the square, by left and right arrow keys press space to change to the triangle and again to square again.(YOU HAVE TO ROTATE AND PREES SPACE AT THE SAME TIME.)
Thanks to my friend for testing it.