Have not tested the 400, but if it is similar to the 4, you could maybe try this:
https://forum.makecode.com/t/makecode-arcade-on-raspberry-pi-including-retropie-recalbox-batocera-etc/14267