Sorry about the confusion. I started with the code on the post and I kept changing it to all possibilities but nothing worked for me, maybe I was placing it in the wrong places.
this.keys = {
ArrowUp: this.jump.bind(this)
}
It worked, finally. Thank you for your help.