I can't help, I'm afraid --- the Inform IDE has never beeped at me.
But I notice that your code shows up an Inform bug. If I RESTART after pressing one of the magic keys (say '1'), then I get the same prompt as before; but this time VM_KeyChar() does not prevent key-presses from showing up at the command line.
(I amended "return ch;" to "return ch - 48;" in your code to get the correct characters to print.)
Quote:
Choose 1,2 or 0? abcdefg11
*** The End ***
Would you like to RESTART, RESTORE a saved game, QUIT or UNDO the last command?
>
I wonder whether this would this be a bug in VM_KeyChar(), or in the actual restart routine?
(I tried replacing "end the story" with a direct call to I6 @restart, but it threw up the same problem.)