Move your mouse (or drag your finger) to swing the hammer.
Push against the ground and hook over ledges to drag yourself upward.
Movement is awkward on purpose. One bad swing sends you tumbling. Good luck.