Refactored PlayerInputHandler to utilize groups.