Changed infinite loop in 'keypad/matrix.cpp'