Welcome to the forum! I moved your topic to the right category, I hope you don’t mind.
This sounds like the detection switch, see this thread for details: Philips DCC 600 - "No Cassette" - #13 by Bandsalat, but cleaning should fix it in your case.
The rubber buttons on the DCC300 are very often like this, there is not much that can be done.