The GUI stops responding as soon as I press a key...