Modified to added ability to enter recovery or fastboot via GPIO key inputs.