Implementing input handling for player character movement