Your excuse is: your keyboard's space bar is generating spurious keycodes. Special thanks to Jeff Ballard for the BOFH excuse server script, which this uses.