Yes, please also answer to the question, whether we have to use brackets for one lining if statements.
Something like:
if(keyboard_check(ord("W")) then y-=2;if(keyboard_check(ord("W")){ y-=2;}