Press the up arrow key to move up. Do not let the parrot touch the building.
Thanks @aliciakhong and @Isaac6382F for the project @Flying parrot. It's really cool!!