To enter codes in Star Wars Battlefront 2, open the pause menu during gameplay. That's where you'll input them, so just pause the action and type away.