Right and Left Arrow Keys to Rotate the Shape. See Inside to understand how it works. It does not use any variables nor complex maths.
@MabonBaladevaKain