suddenly key 'p' is doing strange things
You have spilt some (lots) water on your keyboard. Or less likely, some connectors got broken and are touching each other. Take it to your Apple Store, they will (usually) fix it for free. Or if you’re adventurous, open the thing up and let it dry for a couple of days in the shade.