Button State save, 2 buttons?

where do I Put my Keystrokes in at?

To try the program you need to put the pin numbers of your inputs into the variable initialisations instead of mine and wire the switches to take the inputs LOW when the buttons are pressed.

const byte buttonPin1 = A1;
const byte buttonPin2 = A2;

My inputs use pins A1 and A2

Which pins do yours use ?