Declaration of Matrixkeyboard-Scanner function