To reset or change your iPad's passcode, you can use the "Passcode" menu in your Settings app, or reset the entire device.
To use the S Pen on a Samsung Galaxy device, you'll need to release it from its holder and tap the screen.