code style
Don't update the keys array if the key pressed is unknown
More readable debug information

* Also, don't pass that last argument, it's not used
Use a plain number, it's more readable
Handle ALL input events in one go