Hi Aziz,
It looks as though this code only disables the shift key, which only stops someone opening the database in Admin mode. This does not hide the navigation pane in 2010 as it did in earlier versions.
I have found another thread on this message board that deals with hiding the navigation...