Mouse and keyboard input, based off mad marx tutorial 10