Implemented keyboard movement and smooth movement by touch, mouse and keyboard.