# Azerty keyboard coding

**URL:** <https://discourse.psychopy.org/t/azerty-keyboard-coding/12031>\
**Category:** Online experiments\
**Created:** [April 2, 2020, 4:13pm UTC](https://discourse.psychopy.org/t/azerty-keyboard-coding/12031 "2020-04-02T16:13:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alain](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/alain/32/33043_2.png) [@alain](https://discourse.psychopy.org/u/alain)\
**Post date:** [April 2, 2020, 4:13pm UTC](https://discourse.psychopy.org/t/azerty-keyboard-coding/12031/1 "2020-04-02T16:13:47Z")

</div>

Hi,

Is it possible to have keyboard responses coded according to the azerty layout, rather than qwerty ?  
We are developing a dictation/spelling test with French participants, who all use azerty keyboards.  
Thanks for any help -  
Alain

---

<div class="post-metadata">

**Author:** ![lcrible](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lcrible/32/6233_2.png) [@lcrible](https://discourse.psychopy.org/u/lcrible)\
**Post date:** [February 16, 2021, 3:17pm UTC](https://discourse.psychopy.org/t/azerty-keyboard-coding/12031/2 "2021-02-16T15:17:31Z")

</div>

Hi @alain  
Did you find a solution for this problem? Thanks!

---

<div class="post-metadata">

**Author:** ![alain](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/alain/32/33043_2.png) [@alain](https://discourse.psychopy.org/u/alain)\
**Post date:** [February 17, 2021, 10:35am UTC](https://discourse.psychopy.org/t/azerty-keyboard-coding/12031/3 "2021-02-17T10:35:52Z")

</div>

Hi,  
I found a way to code the conversion by creating code segments :

- a conversion dict is created at the beginning of the experiment with transcoding pairs (ie, “q”, “a”; or “w”, “z”, etc) - see the “Begin Exp” tab of the code component in the attached demo script.
- at each frame, various conversion rules are tested (see “Each Frame” tab of code component).

The attached demo illustrates the principles - they do not exhaust the qwerty/azerty differences but only the ones we did need for a simple dictation test.

HTH !  
[Dictee.psyexp](https://discourse.psychopy.org/uploads/short-url/iA4tVr9Mqb4mj9BV2cJ73SGABIf.psyexp) (12.3 KB)

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 17, 2021, 12:02pm UTC](https://discourse.psychopy.org/t/azerty-keyboard-coding/12031/4 "2021-02-17T12:02:09Z")

</div>

If you ask someone to press the A key, for example, to continue, then you can quickly find out whether their keyboard is QWERTY or AZERTY.
