Functioned out keyboard and mouse functionality, and added range checking, so users cannot pan to infinity.