Up arrow to jump, down arrow to duck.
This is not that hard to code, and it's not the best it can be, so, if you want to, remix it and make it better!