Input and character movement