MedREK: Retrieval-Based Editing for Medical LLMs with Key-Aware Prompts