In this case BUTTON(2) AND #A will work only if the A button was pressed (but not if it was being held). You can also do BUTTON(2) AND (#A OR #B OR #X) to detect if either the A, B or X button were pressed. You can place as many buttons as you want that way. Feel free to ask if you need more help or clarification!