# Free typing Py --\> JS

**URL:** https://discourse.psychopy.org/t/free-typing-py-js/14281
**Category:** Online experiments
**Created:** [June 15, 2020, 9:32pm UTC](https://discourse.psychopy.org/t/free-typing-py-js/14281 "2020-06-15T21:32:54Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [June 15, 2020, 9:41pm UTC](https://discourse.psychopy.org/t/free-typing-py-js/14281/2 "2020-06-15T21:41:25Z")

</div>

I don’t use join or pop for this.

> [@Psychopy to Javascript code](https://discourse.psychopy.org/t/psychopy-to-javascript-code/14266/2):
>
> I’ve used the following in a free recall task. if cursorCounter \>= 30: if cursorVariable=='|': cursorVariable='.' else: cursorVariable='|' cursorCounter=0 cursorCounter+=1 if subject\_response\_finished: continueRoutine=False keys = event.getKeys() if len(keys): if 'escape' in keys: core.quit() elif 'backspace' in keys: if len(recallitems[thisitem])\>0: recallitems[thisitem] = recallitems[thisitem][:-1] else: …

---

_[View the full topic](https://discourse.psychopy.org/t/free-typing-py-js/14281)._
