# waiting for specific key stroke

**URL:** <https://psychtoolbox.discourse.group/t/waiting-for-specific-key-stroke/52>\
**Category:** Uncategorized\
**Created:** [August 11, 2018, 9:00pm UTC](https://psychtoolbox.discourse.group/t/waiting-for-specific-key-stroke/52 "2018-08-11T21:00:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [August 11, 2018, 9:00pm UTC](https://psychtoolbox.discourse.group/t/waiting-for-specific-key-stroke/52/1 "2018-08-11T21:00:57Z")

</div>

Hello,

I would like to ask for a help. How it is possible for the psychotoolbox wait for keyboard stroke of specific key (for example enter or letter 'p') and then continue with further operations. I found only KbStrokeWait , but this command is for any key , but I would like to know how it is possible for specific key. I tried to find the answer or piece of code with this, but I wasn´t successful. Thank you very much in advance.   

   

Mara
