Translating Javascript code into C# Code

Hey guys, I need help converting some code. I managed to (finally) find a guide to scratch building a character movement script in Javascript, but the problem is, I need to know how to write it in C#, which I’m still learning. Can somebody help me translate this code?

[Edited by Julien.Lynge]

@Hetros,
I have edited your entry. First off, Java is not the same thing as Javascript. Second of all, your question (translate from Javascript to C#) has been asked literally hundreds of times. So often, in fact, that I’ve put together a blog post outlining how to do it:

http://fragileearthstudios.com/2011/10/18/unity-converting-between-c-and-javascript-2/

Good luck.

Lol best way is to just compare the Unity reference script examples in c# to java script lol, thats how real thugs do it