Modified to call key_event_done() last when processing key event from engine-loader