Standard way for novice to prevent small round plug from rolling away while soldering wires to it
Figure 1. Image source: iFixit.

This works well for me. Increased grip is possible by increasing the number of "wraps".