i suggest to use 4250psi gorilla glue epoxy, the one that labeled resin.
As for the keyboard, you can remove the melted plastic pins using fine cutter, after all the melted pins are gone you can easily remove the keyboard. To assemble the keyboard to the new case, you can use hot glue gun as a replacement to the melted plastic, and make sure give enough pressure until the glue harden