1. Rotate and flip image can be done by Nokia UI API, all the Nokia Java-enabled phones and emulators support this fuction. Scale image can not be processed by any method of MIDP 1.0 specification or Nokia UI API, developers have to code this by themselves.
2. Moving a ball by pressing one key: detect and catch the key press action and set the ball to the position you want in the method processing the key action and repaint the ball.