Bugfixes

Fixed small bug in PR #2 causing exit when Q is typed in keyboard mode