Using Hydrogen package to run code can't stop

I use hydrogen to run my code which works well normally. But when there is a while ture: with input() inside. The hydrogen keeps catching my enter with no end. I don’t know how to stop it.
Hope there is a way to deal with that.