Both keys, collectively known as Access Keys, are vital identification components of your Midtrans' account. You need to put these keys on your config file. Client key is used to generate credit card tokens specifically for Core API implementation, while server key is used for the remainder of API calls on server-side.
You can see you access keys in your Merchant Administration Portal (MAP) at Settings > Access Keys.