       break;
     }
     case btnNONE: {
-      if (!wasReleased) {
-        wasReleased = true;
+      if (!buttonWasReleased) {
+        buttonWasReleased = true;
       }
       switch (applicationState) {
         case 0: {

      break;
    }
    case btnSELECT: {
      if (wasReleased) {
        wasReleased = false;
        switch (applicationState) {
          // Show SELECT menu items
          // >Mute

    case btnUP: {
      //For up and down volume it´s ok let it execute
      //continuously
      if (buttonWasReleased || (applicationState == 0)) {
        buttonWasReleased = false;
        switch (applicationState) {
          //Volume UP
          case 0: {
