rotates image when key is pressed