Press space to release a cat on your mouse. After that, the cat will follow the shortest path to the apple. You can also drag the apple to other locations.