There's a way to pay a lot less. Ask apple to replace the battery, it costs $219 and because they have to replace the topcase when replacing the battery, you will get a new keyboard.
I was in the same situation and Apple also quoted me $500 until I asked to replace the battery.