Updated virtual keyboard code to properly update when shown.