Print stacktrace on errors in keyboard handlers.