Modified name of variables and added event

Translated name of variables we are using and added and added event so
character can't jump when he isn't touching something.