Fixed player switching direction when two keys are pressed and one is
let go, also fixed player falling through ground when the velY is too
great