# Play Zork on PicoCalc/PicoMite

**URL:** <https://forum.clockworkpi.com/t/play-zork-on-picocalc-picomite/17191>\
**Category:** PicoCalc\
**Created:** [April 30, 2025, 10:20pm UTC](https://forum.clockworkpi.com/t/play-zork-on-picocalc-picomite/17191 "2025-04-30T22:20:45Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [May 6, 2025, 9:16am UTC](https://forum.clockworkpi.com/t/play-zork-on-picocalc-picomite/17191/32 "2025-05-06T09:16:39Z")

</div>

Thanks! Changing the line-ending to CR worked as expected.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/d/d7bf26821e2bf8b190c873e502b989a5a87d7d3a.png)

Thanks for the pointers above too. I just need to figure out what codes the keyboard is actually sending (for enter, shift, alt). I was tempted to go looking in the code for the keyboard firmware, but then I realized I could probably try the BASIC that was mentioned in this thread:

> [@String handling](https://forum.clockworkpi.com/t/string-handling/16492/17):
>
> a$ = InputString("Test string") print a$ for i = 1 to len(a$) print asc(mid$(a$,i,1)) next i function InputString(prompt$) as String local r$="", b$, i, m$ print prompt$; input b$:print for i = 1 to len(b$) m$ = mid$(b$,i,1) select case asc(m$) ' Left shift, right shift, ctrl, alt case 162, 163, 161, 165 m$="" end select r$=r$+m$ next i InputString = r$ end function

I suspect the “Enter” key sends some kind of keycode as well, and may not be either `\r` or `\n`.

I suppose while I’m at it I can try out all the keys to make sure they aren’t doing weird stuff, and filter/translate as needed. The only one that is specifically handled (and is presumably correct) is the “Ctrl” key, which is also handled separately in the regular PicoMite code.

---

_[View the full topic](https://forum.clockworkpi.com/t/play-zork-on-picocalc-picomite/17191)._
