makes keyboard appear and dissapear more user-friendly