Use arrow keys to move, the rest you'll figure out. (btw there's gonna be a part 2.)
gravity and collision was from a tutorial I memorized, but forgot the name. :P Ducks 2 is out! Ducks 2: https://scratch.mit.edu/projects/807048517/