Handle input: quit on <ESC>