First, press space then when it is done the right arrow then when your sprite gets to the second door press left arrow when it is done then press down arrow, up arrow, a key, s key, d key and finally f key.
All my own work.