Refactor and fix the Input class.
Add mouse functions.