fixing keyboard movement