on pressed: flap

Accelerate upwards by flapping wings. Adjust the timing and frequency of button presses to avoid obstacles.