Move keyboard and mouse state to package.
Move Display.destroy call to exit method.