Default [Q] How do I restart my phone into recovery when it won't turn off?

I flashed a ktoonez kernel and it booted to the lockscreen but the touchscreen is unresponsive and I can't turn off my phone. Is it ok to remove the battery? what should i do?