Writing the character code and connecting the PlayerInput class to it