click the green arrow and use arrow keys to move Green lines WILL kill you- so will the bear. Get the apple and head to the portal. - you are the duck below the apple- you can't pass through the green line - you will have to click the green flag to move once you have been at the portal.
Red lines won't kill you!!!! Thanks ethso2