# On Pin Pressed Inconsistent

**URL:** https://forum.makecode.com/t/on-pin-pressed-inconsistent/7576
**Category:** micro:bit
**Created:** [April 23, 2021, 4:23pm UTC](https://forum.makecode.com/t/on-pin-pressed-inconsistent/7576 "2021-04-23T16:23:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MrHM](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MrHM](https://forum.makecode.com/u/MrHM)
#### Post date: [April 23, 2021, 4:23pm UTC](https://forum.makecode.com/t/on-pin-pressed-inconsistent/7576/1 "2021-04-23T16:23:40Z")

</div>

Hello,

When using the On Pin Pressed Block, we have to touch and release to get the block to trigger.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/860f9d1d5bf20de69be0f08a4b0a8fd038c7f561.png)

BUT, if we code a pin check like this, we only have to touch and the sound plays…we do not have to release to get a true condition.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/82b7f4c4baaf66fa3aaaf1ac007128aa89355690.png)

Can anyone explain why the behavior is different between the two approaches?

Thank You
