Check it out: Keyboard input for controlling an animated character followed by an orbital 3rd-person camera. Use the WASD keys for controlling forward, left, backward, and right movements, respectively. Use the left and right arrow keys to control rotation around the Y axis, and the up and down arrow keys to look gently up and down. Clean classes, of which the classes Player, OrbitalCamera, and KeyboardInput can be easily used in your own project. Need on-screen joysticks for mobile? Use this.