Fixed extremely dumb returning-way-too-early bug in the input loop.