After trying to implement interruption on falling edge on the HAL_KEY_SW_1 of usb dongle I have to press 2x the button to get the interruption call.
After trying to resolve the issue I have found the interuption of PICTL in function HalKeyConfig() in hal_key.c for USB2540USB is set with
PICTL |= 0x01;
shouldn't be there
PICTL |= 0x02;
the hal_key.c is from ble stack 1.4.2.2