Need Serial Help

The switch is set to PULLUP in reference to ground so that is looking for a specific Change on pins 7 and 6 for the stop and record buttons then I want it to perform the associated serial command