Fixed problems with movement and keyboard control