Gave my friend a hand job

Kry • 23
Hey :3 so me and my guy friend were laying down together like we usually do and I was a little sleepy so I zoned out a little bit, while in my head I was thinking I was rubbing him though his shorts when he said "uh Star if I get some lotion would you do that again?" 
So I Apperntly I was! Rubbing him and my hand kept going higher and higher tell his shorts were off and I ended up fully jerking him off, his shorts were off and I was looking at his dick while I was jerking him off. 
My question now is, can I get some tips on how to do it better or what could make the guy just lose his mind. I got my friend to cum and his body shook a little and his toes were tightening and I could feel him hardening. So I'm gonna assume I did an alright job. He said I did a good job but I want to know from other woman! What can I do, if this situation comes up again.