implement button press/release with double check using coroutine

Dependencies:   mbed-dev