Use the arrow keys. None of the levels are impossible. If you get stuck on the last level, press the space bar. Press 'P' to change the square's color.
@Carrotred I added different color choices.