@courtney If you search on “pen holder”, you will see a few ideas that members have cobbled together. There is also a simple 3D printed version that I’ve tried and it works very well. All are spring loaded.
Here’s a link to a post that I made, using a design by @kellyz