You can screen record on your Samsung phone by adding the Screen Record option to your Quick Settings.
To use the S Pen on a Samsung Galaxy device, you'll need to release it from its holder and tap the screen.