Noob in BGE Just have anything work with python script
The show console menu is only available on windows, on other systems you start blender from a terminal window to see the same output as the windows console.

Programming languages are very strict when it comes to interpreting the code you give them. As Chebhou pointed out, you are missing a : at the end of the if statement, you also have an extra [ before the keyboard.events. Any small error like this will prevent the script from working.

The error you got says there is an error on line 11, many times it is a line or two before that that has the mistake that needs to be fixed. In this case it says the player.applyMovement() is incorrect because it doesn't fit in what it accepts next, it wants either a : to end the if statement or a boolean operator like and to join the function result with the previous test condition.