# Using keyCode when Processing imported as p

**URL:** <https://discourse.processing.org/t/using-keycode-when-processing-imported-as-p/37652>\
**Category:** Processing.py\
**Created:** [June 20, 2022, 3:40pm UTC](https://discourse.processing.org/t/using-keycode-when-processing-imported-as-p/37652 "2022-06-20T15:40:12Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 25, 2022, 4:43am UTC](https://discourse.processing.org/t/using-keycode-when-processing-imported-as-p/37652/6 "2022-06-25T04:43:26Z")

</div>

PyScript alpha version was recently released and I’ve converted an online sketch for it: 🐍

> [@Converting coding challenge 'Self-avoiding walk backtracing' from p5.js to Processing (Java)](https://discourse.processing.org/t/converting-coding-challenge-self-avoiding-walk-backtracing-from-p5-js-to-processing-java/35047/21):
>
> Python is now a full browser client language w/ PyScript: So again I couldn’t resist converting my previous RapydScript sketch “Self Avoiding Walk II” to PyScript. I’ve also added Python type hints to the whole code: All 3 JS Processing flavors run on PyScript just like CoffeeScript & RapydScript previous versions: You can [click here](https://api.glitch.com/project/download/?authorization=3d2d3e71-2277-421f-9d6a-38d0f41b0522&projectId=3dc3a6ae-9818-441a-8f7e-b1d50e7199c3) to download the full sketch so you can edit & run it somewhere else. And go to the link below to view it fullscreen: [https://Self-Avoiding-Walk-II-PyScrip…](https://Self-Avoiding-Walk-II-PyScript.Glitch.me/)

---

_[View the full topic](https://discourse.processing.org/t/using-keycode-when-processing-imported-as-p/37652)._
