Added function to check if key was pressed
Added function to arm/unarm launcher
Add adaptive threshold function and some control keys