Well, its not that hard. I'll explain it in pseudo-code:

- KeyEvent from user stating jump action
- Get player coordinates
- Add half+ of the gravity amount to the jump above

So in your...