Hi and welcome.
I assume you have a portable - i.e. MacBook/MacBook Pro/MacBook Air. It sounds to me like it's the top case/power button. Have you ever spilled anything on the keyboard?
I second the motion to take it to a Genius Bar or Apple Authorized Service Center.
Good luck,
C