Chosen Solution

MacBook is not powering on or off with the powerbutton. Tried other keyboard without succes. The strange thing is, when i disconnect en reconnect the battery and connect the MagSafe with charger the MacBook turns automatically on. What could be the problem?

Bad keyboard usually from water damage, but check the keyboard to logic board connection. See step # 25 of this guide: MacBook Pro 15" Retina Display Mid 2014 Upper Case Assembly Replacement