Started to use Input rather than directly checking key states. Fixed typo.