You need to sort out your hardware first before even bothering to look at code.
and sometimes they trigger when I simply approach my finger?
Yes that means you have a bad hardware design and your pin is floating.
So 5v would run through buttons up to gnd
Incredibly vague and anyway things do not run UP to ground they run DOWN to ground.
Basically we need to see a schematic.
In the meantime read up about floating inputs here:- http://www.thebox.myzen.co.uk/Tutorial/Inputs.html