How does coffee keep you awake?

How does your morning cup of coffee make you feel more alert? And why is it so easy to quickly feel dependant on it?

From Kew Gardens