replaced hang code with reboot after keypress