Drunk guy touched my butt? What would u do?

So i was at a friends party with my boyfriend and ended up talking to one of the guys there who had lots of drinks because of a game earlier, he was nice and polite we talked and my boyfriend joined the conversation and apparently he caught him looking at me many times. The guy grabbed another drink and we started karaoke. I was in the middle between him and my boyfriend on a bed. While singing he would get very close to me and lay his head on my neck or put his arms around my waist a lot. as we sang more he got more touchy and started touching my legs and holding my hands. that was when i took my hands off him and kissed my boyfriend to make him stop. Then he lied down as if he passed out and he would occasionally with his eyes closed grab and hold my hands so hard that i couldn’t take my hand off but i managed and my boyfriend offered his hand to him and the guy just held his hand so tight and started touching my boyfriends chest but stopped very quickly and looked for my hand again. At one point where i got up apparently he started touching my back and went down and touched my butt, that was when my boyfriend told him to stop. And he stopped but again occasionally would raise his hand to look for my hand while his eyes closed.

P.s i couldn’t change where i was sitting due to some reasons and didn’t say anything because i was worried of the awkwardness and embarrassing him.

I feel like i could have acted differently, what would you do in that situation?