This is the basic file. Includes:
Background Sprite
DuckDie script
DuckFly script
For your info, merely for testing purposes, in the duckdie script I used spacebar as a way to kill the duck.
Obviously this all needs fixing, but this is a start.