Thanks macklebee.
I got rid of the code last nijht after a couple of frustrating hours. The program ran with no errors. The lighting was on and you could lookaround with mouse but movement was frozen.
The problem was I did'nt know which commands were obsolete or no longer needed.
Is it true that LoadScene takes care of lighting now?