Yes, the buffer is a huge problem when running the code. You can retrieve a single key entry by using _KEYCLEAR immediately after: comm = _KEYHIT ' memorize hardware input
I'm surprised this worked for you, because on my system, it will not detect more than 2 keys when I use left arrow + up arrow + spacebar. Now some other combos work, but the one mentioned left arrow + up arrow + spacebar needs to work to have a breakthrough. I wish I could remember a way to get PEEK to recognize a spacebar press. In my attempt, I had to substitute Shift for the spacebar, so I really can't say if a way to PEEK a spacebar press would work or not. It just isn't apples to apples... more like Apples to Windows. Anyway, only certain PEEK/POKE are still preserved, as this was all 16-bit stuff, back in the day. I did find that PEEK(197) worked to find a key press on a Commador64, but that lower rage is apparently ignored on non-16 bit systems. Oh well, that's "progress" for you!
Pete