This is a minor nitpick, but the key
param passed to playdate.keyPressed(key)
seems to return uppercase characters on Windows and lowercase characters on macOS.
A simple workaround is just: key = string.lower(key)
However I was initially confused having started my project on Windows and then none of the debug keys working on macOS because I was checking if key == 'W' then ...
SDK 1.12.0