I have an image that I want to rotate each time the user presses the left or right arrow key. I'm trying to use AffineTransform for this, but the problem is when I click one of the arrow keys it will only rotate once. Like say I have it set to rotate 15 degrees CCW when I press the left arrow key - well the first time is fine, but then I press it again and it does nothing. Also, when I press the right arrow key after the left one, it doesn't go back to the starting location, it goes 15 CW of it. How should I go about getting around this?