The first thing to do is turn off the computer by holding the power button until it goes off. Then, try to turn it back and to see what happens. If that doesn’t work, try performing a forced restart to get it booted back up.