I guess you call handle_keyboard() from your event loop? That will not work because an event is only generated once when you press or release the key.
Just call handle_keyboard() once every frame (or handle the events some other way).
Last edited on
I mean each time you make updates (once each iteration in your game loop).