Added matrix keyboard low-level functions.