what can i do

What type of laptop is it?

Allot of the time food or drink gets under the key, other times the connection is faulty and rarely the circuits are burnt out.

If you can get the keyboard out give it a good clean, and make sure the connectors are seated correctly when you put it back. As always if you open a laptop be careful not to force anything they are very well compacted.