It might not be attached correctly or it might be broken.[br]
Try to find a replacement on this site: https://www.replacementlaptopkeys.com/.[br]
[br]
Apple Keyboards can be diffucult to fix without replacing the whole keyboard but try to replace the single key with hinges first.