Buttons often get jammed when dirt or other debris get stuck underneath in the side panel. There is an iFixit guide on how to pull the button panel off to clean underneath.
If the lines are printing out jagged, you likely need to align the print head. This can be done by following the instructions in the User's Guide that came with your printer.