Teensy 2.0 and button lag

Dang. I'll eventually get the hang of this... :slight_smile: I'll just post the pertinent code, I have some fancy RGB LED code, but I don't want to overload your screen with like 200 lines of code.

#include <Bounce.h>

// setup the button pins
Bounce button1 = Bounce(1,5);
Bounce button2 = Bounce(2,5);
Bounce button3 = Bounce(3,5);
Bounce button4 = Bounce(4,5);
Bounce button5 = Bounce(5,5);

void setup(){
  // make the buttons inputs and use the onboard pullup resistors
  pinMode(1, INPUT);
  pinMode(2, INPUT);
  pinMode(3, INPUT);
  pinMode(4, INPUT);
  pinMode(5, INPUT);
}


void loop(){
  // Update the buttons
  button1.update();
  button2.update();
  button3.update();
  button4.update();
  button5.update();
  
  /* In Easy Worship Mode:
      Light Color = Blue
      Button1 = up          (aka Up Arrow)
      Button2 = down        (aka Down Arrow)
      Button3 = PageDown    (aka Go Live)
      Button4 = ctrlB       (aka Black)
      Button5 = ctrlC      (aka Clear) */
  if (selectedMode == 1) {
      if (button1.risingEdge()) up();
      if (button2.risingEdge()) down();
      if (button3.risingEdge()) pageDown();
      if (button4.risingEdge()) ctrlB();
      if (button5.risingEdge()) ctrlC();
}

My end goal is to have the five buttons work in different modes. (e.g., one mode for one program, another for another program.) Thus the selectedMode statement above.