Programmable codes in simulator and tello drone?

Does this program work on the simulator and on a real tello drone without a key?

See my post here: Tello simulator and real tello - #2 by dbaldwin