sketch seems to skip lines..

First, Do yourself a favor and use Tools -> Auto Format in the IDE to clean up your code's indentation. It'll make your code much easier to read.

Second, you've defined analog inputs for the buttons, is this what you meant to do?

Third, does this code have the same issue or is this just an example of what you think the code is doing?