JavaScript controls

What do i need to do when i need to program an fps game from javascript? i want to know how to learn to use javascript

Try looking at the FPS tutorial on unitys website.