but he had missed by only a matter of months the one invention that may have ignited his interest in the outside world : the first flight of a piloted flying machine , in kitty hawk , north carolina .