I think it would be fine, because if you just have a keyboard in your room, if you ever have any spare time, you can play for 10 minutes, and it would be a great break from studying.
as far as what you should get, I really don't know, but as I said, don't fork out a load of money, maybe even get a second hand one, as long as it still functions you'll be fine