Yes, both Scratch-programs work on my computer when I press
a on the keybord, and sound works too using new Scratch. But only my version works when I use uinput to generate keypresses from Python 2 or 3. The purpose of this Scratch-program is to squeeze a marchmallow as many times as possible during the game by connecting GPIO BCM 2 (i.e. pin 3) to GND (e.g. pin 6) via a marshmallow to and generate keypresses using a Python-program. You have to load the driver after each boot:
It seems the driver uinput doesn't work as a keyboard when one polls the keyboard in Scratch, but it does work when one uses it to trigger keyboard events. Maybe the original program worked with the old Scratch. Otherwise, uinput seems like a simple way to get real world events into Scratch. I will test, but I can't run my browser (Iceape) and Scratch at the same time due to low RAM on this Raspberry Pi A with 32 MB GPU-RAM.
Edit: Now I tested, and the original version didn't respond to simulated keypresses in scratch.old.