Cleaned up Input manager

Some SDL foolishness (read: bugs) on windows prevents proper handling of
mouse input.  The solution, unfortunately, requires a cleanup call to
the InputManager at the end of the main loop