Fixed internal stack overflow caused by overly rapid keyboard interrupts