Create Button input to lever input

Just a bit of code for using a button as a switch. Saving here for later use.