Using 3.5mm input to register a button press (a switch)

Hello! So I have a project where i am going to have a input 3.5mm switch Stereo. So what i wanna do is to get the Arduino to register button press through the 3.5mm input. Because I have very low experience using 3.5mm input there is probably missing information here, so please ask for more information about the issue.

This is the things i have to work with. Please also tell if I need anything else:

https://www.kjell.com/se/image/Product_214442sv/full/1/3-5-mm-kontakt-hane-mono?635484612845550682

https://www.kjell.com/se/image/Product_212323sv/full/1/chassikontakt-med-brytare-3-5-mm-stereo?635484612825863667

What, exactly, is your question? Do want help with the physical connections you should make, i.e. where to solder wires? Or do you want help with the code, in which case you need to show what you have already?