Fixed matrix bugs.
Use higher precision timer.
Use raw input for mouse.