Using a button with CodeBug
Connect a black croc-clip to the ground leg (GND) on CodeBug and attach the other end of the croc-clip to a lead on the button. Now connect another croc-clip to leg 1 of CodeBug and the other end to the lead diagonally across from the other leg you have connected to.
Follow the tutorial below to write programs for your button!