You could also use the pot command and tie each button to a different value resistor.

This gives you the added ability of determining when both buttons are being pressed.