Added class for KeyMatrix.
Less shitty code. Yuupy!