I'm currently writing a ZX Spectrum emulator (I know there are plenty, but it's a project).
I'm having an issue where it keeps repeating the last key press even though I know the port lines have been reset.
This is what it looks like: ZXE Keyboard Shenanigans (in this recording, I pressed C once).
It might be helpful if I could know the location in memory where the Speccy stores lines of BASIC being entered, so I could see what's updating that.