Fixed bug with InputHandler breaking loop after one command executed