I forgot to update the condition to match the new boolean signature. I wonder if there is a compiler warning we can activate to prevent such mistakes in the future.

The reason I used `event_poll(0)` is because the original function called `RealWaitForChar` which doesn't check the input buffer. I'm not sure about moving the `input_available()` test to `event_poll`, it might introduce a non-obvious bug