In handleEvent, calls jump method from Bird class when spacebar is pressed.