This has occurred as recently as today in r28757 (with Java 21.0.9), but has affected multiple other versions over the past month or so, as well.
1. Use a Tales of Spelunking.
2. Play through Spelunky as normal.
3. Close the book in the last choice, and remain stuck in the Spelunky limit mode...