IRQ not received properly in keypad
I am using a keypad whose press event is mapped to irq 37 and released event is mapped to irq 38.
But in the below scenario something weird happens,
Press key "A" recived the press irq (i.e 37) keeping the key "A" pressed i pressed the another key "B" again recieved the press irq 37 but when the key "B" released didn't recived released irq but received the press irq i.e (irq 37).
At the end when released the key "A" got the release irq (i.e 38) properly.
Can any one explain what may be the reason?