Fixed bug when device rotate and keyboard is active.
Changed ivars that should or may be private to private.