fixing player keyboard controls