Fixed some various bugs preventing the "home" key from behaving.