Eject key no longer working The Eject key on my iMac (OSX Lion) is no longer working. It was working fine until a few days back, and I remember sleeping my display using the Ctrl+Shift+Eject shortcut, when I first found out about the shortcut, a few days back. But it is no longer working.


I have checked that it is not set as the shortcut for 'Speak selected text' option
I have tried resetting the NVRAM
I have tried switching user to check if it is a software problem


How can I fix it?
To fix the problem you should try to see if the problem is hardware or software.
We are going to rule out software because of the hardware testing that was completed.
As noted in OP's comment

... But I tried connecting the wireless keyboard to my MacBook, and the Eject key did not work there too ...

Since this problem persisted across multiple macs that strongly points to a hardware issue with the eject key on that Apple wireless keyboard.
If your Mac that the keyboard came with still has some coverage under AppleCare then Apple should cover repairing or replacing the keyboard according to  AppleCare - Mac and Apple Display Coverage

What’s covered — Mac

Your Mac computer

Included accessories such as the power adapter