If someone was touching you and you didn't want them to you could say either 'Get your hands off me!' or 'Keep your hands off me!'
If someone was not touching you (maybe they were looking at you weird or maybe you had already removed their hands from your body) you could say 'Keep your hands off me!' like a warning. In this case, you could not say 'Get your hands off me' because their hands were not on you the moment you said it.