Updated input engine event handler